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

createShortcut only fires once #752

Open
sebastiansandqvist opened this issue Feb 13, 2025 · 0 comments
Open

createShortcut only fires once #752

sebastiansandqvist opened this issue Feb 13, 2025 · 0 comments

Comments

@sebastiansandqvist
Copy link

sebastiansandqvist commented Feb 13, 2025

Describe the bug

In @solid-primitives/keyboard on a mac, any Meta+[key] combination results in the [key] getting stuck in the down state. As a result, you can only trigger the callback in createShortcut once. After that, you need to press the non-meta key again on its own to make it unstuck.

Image

Probably related: #665

It seems like it may be impossible to get keyup events when the Meta key is being held down on mac. (SO post)

Minimal Reproduction Link

https://stackblitz.com/edit/github-qltgbsks?file=src%2FApp.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