From 2929d7d5e4c62b2dc488379f39cc24f48ddbf61f Mon Sep 17 00:00:00 2001 From: Twest2 Date: Tue, 7 Jul 2026 13:09:21 -0500 Subject: [PATCH] Fix zoom multi --- app/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/main.js b/app/main.js index 952a229..e9957bf 100644 --- a/app/main.js +++ b/app/main.js @@ -156,6 +156,10 @@ function createWindow() { // with this window's preload bridge. security.installWindowSecurity(mainWindow, 'main'); mainWindow.webContents.on('before-input-event', (event, input) => { + // Electron reports both the key-down and key-up as separate + // before-input-event calls; only act on the down edge or every tap + // fires the shortcut twice regardless of the dedupe window below. + if (input.type !== 'keyDown') return; const kind = zoomShortcutFromInputEvent(input); if (!kind) return; event.preventDefault();