Skip to content

Pressing/Releasing a "Super" key throws "invalid key code specified #188

Open
@smithkyle

Description

@smithkyle

Version
last public version

Short overview
Attempting to pressKey or releaseKey with LeftSuper or RightSuper throws "invalid key code specified"

Detailed error description
It looks like this happens because the keycode sent from nut.js when LeftSuper or RightSuper are sent is "command" which does NOT have a corresponding keycode in the KeyNames struct in libnut's main.cc file. As a result, no key code is found.

Additionally, it looks like nut.js does not currently have a way to press the "meta" key, although it has entries in libnut's main.cc

Steps to reproduce error
await keyboard.pressKey(Key.LeftSuper)

Additional content

Please provide any (mandatory) additional data to reproduce the error (Dockerfiles etc.)

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