support for non english keyboards
goleary opened this issue · comments
Thanks for a super useful library!
I have a hot key, /
. It works well on English keyboards, but does not work on Spanish keyboards. On Spanish keyboards the /
character is typed by pressing shift+7
.
Thing is the keypress event indicates event.key === '/'
so I'm not sure why hotkeys isn't able to recognize it.
The workaround I'm using for now is creating two hotkeys, one for /
& the other for shift+7
, but this is suboptimal, and next time one of my users complains about the hotkey not working for them I'll likely have to add another hotkey.
Is there any reason why the event.key
is not used for matching the hotkey?
This StackBliz demonstrates the issue.