react-hotkeys
react-hotkeys copied to clipboard
[BUG] "plus" key mapping doesn't work on mac
Describe the bug "plus" key mapping doesn't work
How are you using react hotkeys components? (HotKeys, GlobalHotKeys, IgnoreKeys etc) GlobalHotKeys
{
ZOOM_IN: "alt+plus",
}
it doens't work also without a combination, i.e. only "plus"
Expected behavior
Matched function should be called.
Platform (please complete the following information):
- version 2.0.0
- chrome latest
- Mac OSX 14
I think you should use = as the + needs a shift to be typed on mac
{
ZOOM_IN: "alt+=",
}
Curious one, @yossi-shasho. I'd expect it to work, but there's probably an edge case in there that's stopping it. I'll have to take a look.
@ralves00123 that solves, thanks!