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.
- Press Command + A.
- Observe that the A stays in "Pressed Keys".
- Press other keys and see they are added to the list with A. Notice the Control + E + R example does not work anymore.
- 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
Describe the bug
When using
useKeyDownSequenceandcreateShortcutif 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.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