Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single-key turbo mode #464

Merged
merged 6 commits into from
Jun 14, 2024
Merged

Single-key turbo mode #464

merged 6 commits into from
Jun 14, 2024

Conversation

Schneegans
Copy link
Contributor

This PR makes any key a Turbo-Mode modifier. Before only if Alt, Ctrl, Shift, and Meta were held down, you could browse through the menu in "Turbo-Mode". Now this is possible with any key. This makes it possible to easily use Turbo-Mode even if a menu is bound to a single key without a modifier.

There's a small caveat though: In order to know that a key is pressed, we have to rely on key repeat: When you keep a key pressed, after a short delay (maybe half a second?) the OS will spam an app with key-down events. However, during this short period until the key-repeat events start to arrive, we cannot enter Turbo mode yet. So there will be a small delay after you opened the menu in which Turbo-Mode will not yet work.

If this delay is too long for your liking, you can hit the key quickly twice - this way Kando will get the key-down event and Turbo-Mode will work right out of the box!

@Schneegans Schneegans linked an issue Jun 14, 2024 that may be closed by this pull request
@Schneegans Schneegans merged commit 74a642f into main Jun 14, 2024
9 checks passed
@Schneegans Schneegans deleted the feature/single-key-turbo-mode branch June 14, 2024 03:43
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.

Turbo-Mode for shortcuts without modifiers
1 participant