Skip to content
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

[keyboard] Pressing Command-[key] breaks key sequences & shortcuts #553

Open
JacobZwang opened this issue Dec 23, 2023 · 0 comments
Open

Comments

@JacobZwang
Copy link

JacobZwang commented Dec 23, 2023

Describe the bug

When using useKeyDownSequence and createShortcut if you at any time use a shortcut such as Command-A, they will stop working as expected. This issue can be observed on the example provided in the keyboard package's readme.

  1. Press Command + A.
  2. Observe that the A stays in "Pressed Keys".
  3. Press other keys and see they are added to the list with A. Notice the Control + E + R example does not work anymore.
  4. Blur the window and notice the A is removed. Pressing A will also remove it.

I've observed this behavior on MacOS Chrome and Safari, have not tried on Windows.

Minimal Reproduction Link

https://codesandbox.io/s/solid-primitives-keyboard-demo-s2l84k?file=/index.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant