is-hotkey
is-hotkey copied to clipboard
Does is-hotkey have any equivalent to keycode.isEventKey()?
It would be awesome if we could remove keycode
completely in favor of is-hotkey
. Is it possible to reproduce the behavior?
The below will match any Enter key press, whether it includes modifiers or not.
const isAnyEnterKeyCombo = event => keycode.isEventKey(event, 'enter');