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
The Nuxt UI is just an example of the API. They have their custom shortcuts system.
However, there is an issue with hotkey sequences (["G", "G"]) and object hotkeys ({ key: 'S', mod: true }), as objects can't have other objects or arrays as their keys. To support such keys, we may need to accept Map instead of an object. Or we can accept only string hotkeys for multi-registration: Ctrl+Z for hotkeys and G-G or G-Ctrl+Z for hotkey sequences.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Calling
useHotkey/useHotkeySequenceis too verbose. It would be nice to be able to register all the necessary hotkeys at once:This will be extremely helpful when working with menus and their items, similar to Nuxt UI:
However, there is an issue with hotkey sequences (
["G", "G"]) and object hotkeys ({ key: 'S', mod: true }), as objects can't have other objects or arrays as their keys. To support such keys, we may need to acceptMapinstead of an object. Or we can accept only string hotkeys for multi-registration:Ctrl+Zfor hotkeys andG-GorG-Ctrl+Zfor hotkey sequences.Beta Was this translation helpful? Give feedback.
All reactions