You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They then use the meta + enter combo to run an unrelated task.
Since they used the enter key, the browser treats it as a click event and clicks the menu item, then react-hotkeys run the handler.
I'd like to preventDefault, or something similar, on all browser events if and only if the user used the meta+enter combo.
How are you using react hotkeys components? (HotKeys, GlobalHotKeys, IgnoreKeys etc)
GlobalHotKeys
Expected behavior
I'm using the meta + enter combo. A menu item is currently focused. If the user enters the combination, I would expect the enter key shouldn't fire the browser click event on the menu item.
Platform (please complete the following information):
Version of react-hotkeys: 2.0.0
Browser [e.g. chrome, safari]: chrome
OS: [e.g. iOS]: Mac
Include the smallest log that includes your issue:
The meta + enter combo is matched long after the menu item has already been clicked.
What Configuration options are you using?
None as I was unable to find anything that could help me here.
The text was updated successfully, but these errors were encountered:
Describe the bug
meta + enter
combo to run an unrelated task.I'd like to preventDefault, or something similar, on all browser events if and only if the user used the
meta+enter
combo.How are you using react hotkeys components? (HotKeys, GlobalHotKeys, IgnoreKeys etc)
GlobalHotKeys
Expected behavior
I'm using the
meta + enter
combo. A menu item is currently focused. If the user enters the combination, I would expect the enter key shouldn't fire the browser click event on the menu item.Platform (please complete the following information):
Include the smallest log that includes your issue:
The
meta + enter
combo is matched long after the menu item has already been clicked.What Configuration options are you using?
None as I was unable to find anything that could help me here.
The text was updated successfully, but these errors were encountered: