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

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

Open
smithkyle opened this issue Feb 9, 2025 · 0 comments
Open

Comments

@smithkyle
Copy link
Contributor

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.)

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