greena13 / react-hotkeys

Declarative hotkey and focus area management for React
https://github.com/greena13/react-hotkeys
ISC License
2.15k stars 160 forks source link

Fixed bug with Shift+Space, Shift+Enter combinations. #301

Open andrew-sv opened 3 years ago

andrew-sv commented 3 years ago

Removed 'Space' and 'Enter' keys from translateToKey map. As per my research, this map is used in hasKeyPressEvent method, which tells you if a given key has keyPress event or not for further emulation. All keys from the map except 'Space' and 'Enter' don't have keyPress event. Let's remove these two from the map.

ibash commented 3 years ago

@andrew-sv come over to the community edition: https://github.com/ibash/react-hotkeys