Skip to content

fix: Cmd+Q intercepted by tab cycling handler in useKeyboard#9

Open
cprivitere wants to merge 1 commit into
danielout:mainfrom
cprivitere:feat/cmd-q-quit
Open

fix: Cmd+Q intercepted by tab cycling handler in useKeyboard#9
cprivitere wants to merge 1 commit into
danielout:mainfrom
cprivitere:feat/cmd-q-quit

Conversation

@cprivitere
Copy link
Copy Markdown

@cprivitere cprivitere commented May 14, 2026

The useKeyboard composable's tab cycling handler (src/composables/useKeyboard.ts:97) checked for bare q without guarding against metaKey/ctrlKey, so Cmd+Q was being intercepted and treated as a 'previous tab' command instead of quitting the app.

Fix: wrap the q/e tab cycling shortcuts in !event.metaKey && !event.ctrlKey so they only fire for unmodified keypresses.

@cprivitere cprivitere marked this pull request as draft May 14, 2026 00:55
@cprivitere cprivitere changed the title feat: add Cmd+Q keyboard shortcut to quit app feat: add Cmd+Q to quit app via native macOS menu May 14, 2026
@cprivitere cprivitere changed the title feat: add Cmd+Q to quit app via native macOS menu fix: Cmd+Q intercepted by tab cycling handler in useKeyboard May 14, 2026
The useKeyboard composable's tab cycling handler checked for bare 'q' without guarding against metaKey/ctrlKey, so Cmd+Q was being intercepted and treated as a 'previous tab' command instead of quitting the app.
@cprivitere cprivitere marked this pull request as ready for review May 14, 2026 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant