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
Pressing the spacebar breaks the event listeners for a bit if nothing is focused. When focusing on an element pressing spacebar doesn't break react-hotkeys.
I'm using the HotKeys component
Expected behavior
Pressing the spacebar should work as expected and not break react-hotkeys
Platform (please complete the following information):
Version of react-hotkeys 2.0.0
Browser: chrome and firefox developer
OS: mac os
Include the smallest log that includes your issue:
The text was updated successfully, but these errors were encountered:
juansalvatore
changed the title
[BUG] Space breaks the event listeners
[BUG] Pressing the spacebar with no element focused breaks the event listeners
Mar 10, 2021
Try the react-hotkeys-ce package on npm. It has the latest code from this repo and most contains a fix for this.
Thank you @nopol10 !!!! I was about to have to abandon a feature I had been working on for weeks because of this bug, and then I tried what you suggested and it fixed all the problems.
Describe the bug
Pressing the spacebar breaks the event listeners for a bit if nothing is focused. When focusing on an element pressing spacebar doesn't break react-hotkeys.
I'm using the HotKeys component
Expected behavior
Pressing the spacebar should work as expected and not break react-hotkeys
Platform (please complete the following information):
Include the smallest log that includes your issue:
The text was updated successfully, but these errors were encountered: