-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Numpad buttons don't work on Linux #360
Labels
Milestone
Comments
s1hofmann
added
enhancement
Enhancement to existing features
libnut
Root cause located in libnut
labels
Jan 17, 2022
Hi @suchipi 👋 Thanks for reaching out and the most thorough issue description I received so far 😄 |
s1hofmann
added a commit
to nut-tree/libnut-core
that referenced
this issue
Jan 17, 2022
s1hofmann
added a commit
to nut-tree/libnut-core
that referenced
this issue
Jan 17, 2022
s1hofmann
added a commit
to nut-tree/libnut-core
that referenced
this issue
Jan 17, 2022
* (nut-tree/nut.js#360) Added keypad keys to Linux keymap * (nut-tree/nut.js#360) Reverted accidental changes to Windows keymap
There's a new snapshot release of nut.js ( |
Oo awesome, thank you! I'll give it a shot |
Works great; thank you so much! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Version
2.0.0
Short overview
Calling
keyboard.pressKey(nut.Key.NumPad1)
doesn't work on Linux. It doesn't seem to work for any numpad key.Issue occurs on
Detailed error description
If you run the following code in Node.js 12.22.7 on Linux Mint 20.3 Cinnamon 20.3,
the result of the last line will be rejected with this error:
Steps to reproduce error
test.js
with the following content:cd
to navigate to the folder where said script (test.js
) resides.node ./test.js
Expected behavior:
Numpad 1 gets pressed (virtually), so a "1" is typed into the terminal.
Actual behavior:
The key is not pressed, no "1" is typed into the terminal, and the following error is printed:
Additional content
I am using a US keyboard layout, and my keyboard has a numpad. I also have a mouse attached that presents itself as both a mouse and a keyboard (because it has some macro keys on the side).
I am using Xorg, not wayland.
I have two monitors attached to my computer, and the primary monitor is on the right of the secondary monitor.
The text was updated successfully, but these errors were encountered: