octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.34k stars 955 forks source link

All key events continuously hold down keys on Windows only. #745

Open dassoop opened 1 year ago

dassoop commented 1 year ago

Currently any key event (key down, key up, key tap) on windows will press and hold the key continuously. If I try to run "key up" on it, nothing happens. On OSX this same script seems to work perfect, and releases the keys as expected. Is this an issue with sticky keys possibly?

64jcl commented 10 months ago

Yep had the same problem so clealy a bug in RobotJS. Neither key up or tap will actually send the release event in windows making the key stuck down in many apps. I had to resort to Nut.JS where down and release works just fine (although their equivalent of tap does not it seems).