Skip to content

fix: ignore held key repeat for popup hotkey - #16

Open
gmcky wants to merge 1 commit into
MoonMonet:mainfrom
gmcky:fix/hotkey-ignore-hold
Open

fix: ignore held key repeat for popup hotkey#16
gmcky wants to merge 1 commit into
MoonMonet:mainfrom
gmcky:fix/hotkey-ignore-hold

Conversation

@gmcky

@gmcky gmcky commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Holding the popup hotkey (e.g. Ctrl+C) let OS key auto-repeat count as
repeated presses, so a held combo opened the popup on its own. Track the
trigger key as held and ignore repeats until it is released, so only real
double-taps open the popup.

Verify:

  • hold Ctrl+C does not open popup
  • double-tap opens popup, repeatable across cycles
  • single Ctrl+C still copies normally

Tested on Windows. The rdev key event flow is the same on macOS and Linux,
so the fix should behave identically there; no separate cross-platform test
needed.

Ready to merge from my side.

@gmcky
gmcky marked this pull request as ready for review August 8, 2026 15:16
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