- Notifications
You must be signed in to change notification settings - Fork97
Open
Description
Problem
Hotkeys do not trigger when the focused element is an input or textfield.
Suggestion
Add opt in support for global hotkeys that fire even when focus is inside some input form/textarea. There are cases where certain shortcuts (e.g Ctrl+S to click save button, Ctrl+K to click a command palette) should work everywhere including when the user is typing in some textarea.
The feature is similar toMousetrap’s Global Bind.
Possible Implementation
Introduce adata-hotkey-global
attribute:
<button data-hotkey="Ctrl+s" data-hotkey-global>Save</button>
Related Work
Metadata
Metadata
Assignees
Labels
No labels