You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hotkeys registered all over the app and they often conflict, or do two things for one hotkey
The solution is to use the react-hotkeys-hook’s scoping features to change the hotkey scope depending on where you are in the app, and enable hotkeys based on this.
Discussion notes:
We also want to centralize the key combos & associated actions and make them user-editable.
This would be implemented in stages:
Store the hotkey data in memory (e.g. just a constant)
Implement editing
a. Persist the hotkeys to localStorage
b. Allow editing of the hotkeys
Implement backend permanent storage (?)
Are hotkeys server state or client state? I think server state, so they need to be stored in the backend, but this is open to dissenting opinions
The react-hotkeys-hook library has a number of issues. It's not clear if it is capable enough for our needs. It looks like a theoretical v5 will improve things.
Is there an existing issue for this?
Contact Details
No response
What should this feature add?
Hotkeys registered all over the app and they often conflict, or do two things for one hotkey
The solution is to use the react-hotkeys-hook’s scoping features to change the hotkey scope depending on where you are in the app, and enable hotkeys based on this.
Discussion notes:
We also want to centralize the key combos & associated actions and make them user-editable.
This would be implemented in stages:
a. Persist the hotkeys to
localStorage
b. Allow editing of the hotkeys
enabled: () => false
disables all later-registered handlers JohannesKlauss/react-hotkeys-hook#1035 → this is not a factor if proper scoped implementation is in placeAlternatives
No response
Aditional Content
No response
The text was updated successfully, but these errors were encountered: