From 89a9d9fa9e289772a77fec521950439935346fa2 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Tue, 4 Aug 2026 06:03:05 -0700 Subject: [PATCH] fix: narrow main-owned shortcut actions --- src/main/window/createMainWindow.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/window/createMainWindow.ts b/src/main/window/createMainWindow.ts index 99ee3fc8dc5..639dc35f0c8 100644 --- a/src/main/window/createMainWindow.ts +++ b/src/main/window/createMainWindow.ts @@ -640,7 +640,9 @@ export function createMainWindow( const doubleTapDetector = new ModifierDoubleTapDetector() // Why: one mapping of action → IPC/side effect, shared by the keydown and double-tap paths so they can't drift. - const sendResolvedWindowShortcutAction = (action: WindowShortcutAction): void => { + const sendResolvedWindowShortcutAction = ( + action: Exclude + ): void => { switch (action.type) { // The renderer's DictationController re-checks enabled/sttModel and ignores hold mode, so this path needs no voice guards. case 'dictationKeyDown':