Repository navigation
Global shortcut to show the main window (Ctrl+Alt+H) - #379
Merged
Merged
Conversation
A global shortcut opens the main window from any app; pressing it again
while the window is in front closes it. It is Ctrl+Alt+H by default
(Control+Option+H on macOS), the same keys on all three platforms. H is the
only letter that produces no character with AltGr (Ctrl+Alt on Windows and
Linux) on the common European layouts, so the default does not block typing.
- Settings > General > Global shortcut: record another combination, turn it
off, or restore the default. A modifier is required except for F1-F12;
combinations the app already uses (Ctrl/Cmd+K, +1..9, +=, ...) are
rejected. The current shortcut is released while recording.
- Stored per computer in app.json as "hotkey" ("" = off, missing =
default); not synced. A combination another app holds is not saved; the
default failing at startup is shown in the row, not as a notice.
- macOS: the menu bar's "Open ThinkWatch Lite" item shows the shortcut.
- Linux Wayland sessions: not supported (the plugin only speaks X11 and
would report success without receiving keys); the row is disabled.
Closes #377
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A global shortcut opens the main window from any app. Pressing it again while the window is in front and focused closes it, like the close button.
|,@,€,łand similar characters. It does not clash with system, browser or VS Code defaults; it does clash with "Call Hierarchy" in JetBrains IDEs and Eclipse, and those users can change or turn it off.app.json"hotkey", e.g."Ctrl+Alt+H";""is off and a missing field is the default. Invalid values read as the default. The setting is per computer and not synced, like the interface size.model::Key). When the menu bar is hidden, the Menu bar row's description also mentions the shortcut.global-hotkey0.8 uses X11 only, and when it cannot reach X itsregisterstill returnsOkwithout ever receiving keys.Uses the official
tauri-plugin-global-shortcut2.4.1 (CarbonRegisterEventHotKeyon macOS, which needs no Accessibility permission;RegisterHotKeyon Windows;XGrabKeyon X11). It is Rust-only, with no JS API or capability.Test plan
cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo test(new: text form and off/default, unreadable values, modifier rule, every allowed key maps to a pluginCode, the default is Control+Alt+H, prefs round trip and invalid value, not synced, the menu item key and key-equivalent mapping)tsc -b --noEmit,vitest run(new: key labels, modifier order, in-app combinations rejected)Closes #377
🤖 Generated with Claude Code