Bug description
When using the flag useKey: true, modifiers like shift, ctrl, alt, etc, are no longer checked. For example, I use shortcut save (Ctrl+Shift+S). This shortcut handler fires if I simply press the "s" key (not considering modifiers)
Steps To Reproduce
Steps to reproduce the behavior:
- Create a save shortcut (
Ctrl+Shift+S)
- pass to the hook
useKey: true
- Press just the key
"s" without modifiers
Current behavior: fires save shortcut handler
Expected behavior: nothing happens. Shortcut applies only to Ctrl+Shift+S.
Desktop (please complete the following information):
- OS: macOS
- Browser Chrome
- Version latest (5.2.4)
Attached the PR with my version of the fix:
#1317
Bug description
When using the flag
useKey: true, modifiers like shift, ctrl, alt, etc, are no longer checked. For example, I use shortcut save (Ctrl+Shift+S). This shortcut handler fires if I simply press the "s" key (not considering modifiers)Steps To Reproduce
Steps to reproduce the behavior:
Ctrl+Shift+S)useKey: true"s"without modifiersCurrent behavior: fires save shortcut handler
Expected behavior: nothing happens. Shortcut applies only to
Ctrl+Shift+S.Desktop (please complete the following information):
Attached the PR with my version of the fix:
#1317