Skip to content

Commit 41c3dcf

Browse files
committed
if !shouldPaste, dont consume the key (return false)
1 parent b85c791 commit 41c3dcf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

emain/emain-tabview.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ function handleWindowsMenuAccelerators(
4040
if (checkKeyPressed(waveEvent, "Ctrl:v")) {
4141
const ctrlVPaste = fullConfig?.settings?.["app:ctrlvpaste"];
4242
const shouldPaste = ctrlVPaste ?? true;
43-
if (shouldPaste) {
44-
tabView.webContents.paste();
43+
if (!shouldPaste) {
44+
return false;
4545
}
46+
tabView.webContents.paste();
4647
return true;
4748
}
4849

0 commit comments

Comments
 (0)