We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddaa229 commit 4236aa6Copy full SHA for 4236aa6
1 file changed
src/main/electron.js
@@ -235,6 +235,18 @@ function createWindow (opt = {})
235
236
mainWindow.loadURL(ourl)
237
238
+ // Intercept Ctrl/Cmd+Shift+V before it reaches the renderer
239
+ // so paste-without-formatting works even when the web app captures the shortcut
240
+ mainWindow.webContents.on('before-input-event', (event, input) =>
241
+ {
242
+ if (input.type === 'keyDown' && input.key === 'v' &&
243
+ input.shift && (isMac ? input.meta : input.control) && !input.alt)
244
245
+ event.preventDefault();
246
+ mainWindow.webContents.pasteAndMatchStyle();
247
+ }
248
+ });
249
+
250
// Open the DevTools.
251
if (__DEV__)
252
{
0 commit comments