is-hotkey icon indicating copy to clipboard operation
is-hotkey copied to clipboard

Does is-hotkey have any equivalent to keycode.isEventKey()?

Open Nantris opened this issue 2 years ago • 0 comments

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');

Nantris avatar Nov 25 '21 20:11 Nantris