libnut
libnut copied to clipboard
Pressing/Releasing a "Super" key throws "invalid key code specified
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.)