Skip to content

createShortcut only fires onceΒ #752

@sebastiansandqvist

Description

@sebastiansandqvist

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions