Skip to content

feat(windows): hotkeys another app has taken can be tried again from Settings - #19

Merged
CubityFirst merged 4 commits into
mainfrom
feat/reload-hotkeys-indicator
Nov 24, 2026
Merged

CubityFirst merged 4 commits into
mainfrom
feat/reload-hotkeys-indicator

Conversation

@CubityFirst

@CubityFirst CubityFirst commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

On Windows another app can grab snapr's hotkey keys, for example when snapr restarts after it. snapr then can't register them, and until now the only fix was quitting and starting snapr again. It also wasn't clear which hotkeys had stopped working.

Now Settings > Hotkeys shows a card saying how many hotkeys are unavailable, with a Try again button. Each affected hotkey gets an Unavailable tag, and hovering it shows why. Try again only retries the hotkeys that failed and leaves the working ones alone. When a hotkey fails at startup, snapr opens on the Hotkeys page instead of General. The card is hidden on Linux desktops that manage the keys themselves.

Another app holds three keys After it lets go and Try again

Proof: on Windows, a helper process held three of the configured hotkeys with RegisterHotKey, and a fourth key was left free. snapr started on Hotkeys with the card and three tags. Try again while the keys were still held kept the card and showed "3 hotkeys are still unavailable". After the helper let go, Try again registered all three (another process's RegisterHotKey then failed on them), and the free key stayed registered the whole time. Also ran cargo clippy --all-targets -D warnings and cargo test (189 passed after rebasing onto main).

Reviewed with sol-loop: 3 rounds with GPT-6.2 Sol. Sol verdict: approved

…Settings

When another app holds a hotkey's keys, snapr couldn't register it and the
only way to get it back was to restart snapr. The Hotkeys page now says how
many hotkeys are unavailable, marks each one, and has a Try again button
that registers them again once the other app lets go. snapr opens on the
Hotkeys page when one fails at startup.
@CubityFirst
CubityFirst force-pushed the feat/reload-hotkeys-indicator branch from 2dfe95b to 5309277 Compare November 24, 2026 18:08
@CubityFirst
CubityFirst merged commit 03a677c into main Nov 24, 2026
4 checks passed
@CubityFirst
CubityFirst deleted the feat/reload-hotkeys-indicator branch November 25, 2026 15:26
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