Feature Request: non-global / focus-only shortcuts
See original GitHub issueIt would be great if when assigning shortcuts, that we could pass global: false
or something so the active
callback would only be called if the app is focused.
I guess we could check ourselves if the app is focused, but maybe it would more efficient not to catch the keys at all when the app is blurred on a lower level?
<bountysource-plugin>
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 9 years ago
- Comments:5
Top Results From Across the Web
What's new in Shortcuts - Apple Support
Learn about the new features in Shortcuts for iOS, iPadOS, macOS, and watchOS. Get complete step-by-step instructions and information on all ...
Read more >ability to disable the global keyboard shortcut invoking 1P mini
Is it possible to put a checkbox in the 1P settings to disable the global keyboard shortcut that invokes 1P mini?
Read more >ability to add global keyboard shortcuts - chromium - Monorail
I wanted to create an extension that adds "screen" keybinding to Chrome for tab management, e.g., press ^a-^a to switch between recent tabs,...
Read more >Creating and handling shortcuts - Slack API
Global shortcuts are not visible (and therefore usable) for all types of guest user. Please see our Help Center for an up-to-date breakdown...
Read more >Speeding up workflows with keyboard shortcuts - Postman Blog
Without a shortcut, a user would have to select a request in the sidebar using their pointer every time they wanted to open...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@blazedd I understand how to bind key events, etc. It’s not that it’s technically impossible as is, I’m simply asking for the option to not make the shortcuts global, as a built-in option in the shortcuts API. If you don’t want it, that’s ok.
It would be handy. Otherwise, let’s say you don’t know how many windows will be open at once. You then need to:
isFocused
Boolean somewhere for each window.global: false
would be a lot nicer.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.