-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Handler triggers without completing full sequence - 2.0.0-pre5 #183
Comments
Hi @jordantomax, thanks for the great write-up. I think this may be fixed in v2.0.0-pre7. Are you able to confirm this is the case? |
Hey @greena13 - I just tested with v2.00-pre7 (with GlobalHotkeys) and am having the same issue with meta+enter. Interestingly, when I change the non-meta key to something else (like "meta+b"), it no longer triggers with just the command key. Also, for the original meta+enter case, if I click away from the window and back, being able to trigger it with just "command" goes away. |
@greena13 thanks for the quick turnaround! And apologies for the delayed response, I’m traveling in Asia right now and internet is unreliable. I’ll take a look as soon as I’m with a computer and good internet and will confirm that the issue is fixed. Hopefully early next week. Thanks!! |
@greena13 Unfortunately no dice 🎲. Bug is still affecting our app in 2.0.0-pre7, same as @julesbecker. Can we re-open? |
@greena13 Also updated the code sandbox with the latest version so you can reproduce there. |
Apologies for the misunderstanding, @jordantomax. The fix for this has yet to be deployed (it's not in I have up until this point been using the fact that merging in bug fixes into In the meantime, the fix should be available in |
@greena13 Ah! Testing off master does appear to fix the problem! 😄😄. I've actually disabled the specific feature in my app temporarily as I found another issue (which I created a Github issue for). I'll wait until we find a fix for that one to re-enable. So I'll wait for the new version over the weekend as it's less urgent. Thanks for the info. |
Fix is now available in v2.0.0-pre8. |
Thank you! |
Describe the bug
meta keys trigger events even when full sequence of keys has not been completed
Here's a sandbox of the issue: https://codesandbox.io/s/gracious-dhawan-3ncnw?fontsize=14
To reproduce, focus the input, then do the following:
How are you using react hotkeys components? (HotKeys, GlobalHotKeys, IgnoreKeys etc)
HotKeys
Expected behavior
action only triggers when full sequence of keys is completed
Platform (please complete the following information):
Are you willing and able to create a PR request to fix this issue?
Maybe!
APPLICABLE TO v2.0.0-pre1 AND ABOVE: ======================
Include the smallest log that includes your issue:
What Configuration options are you using?
None!
The text was updated successfully, but these errors were encountered: