fix: narrow main-owned shortcut actions

This commit is contained in:
Neil
2026-08-04 06:03:05 -07:00
parent 672b9fe70a
commit 89a9d9fa9e
+3 -1
View File
@@ -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<WindowShortcutAction, { type: 'toggleWorktreePalette' }>
): 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':