Closed rivafarabi closed 4 months ago
After certain key is toggled by keyToggle('w', 'down') , the key keeps getting pressed even after the keyToggle('w', 'up') gets called. The issue mainly occurred in some software, mainly games.
keyToggle('w', 'down')
keyToggle('w', 'up')
Based on comments on https://github.com/octalmage/robotjs/issues/252 and https://github.com/nut-tree/libnut-core/pull/87, removing the scan code for keyup event solve this certain issue.
The softwares (games) that have been tested:
Thanks for this!
:tada: This PR is included in version 0.11.6 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
After certain key is toggled by
keyToggle('w', 'down')
, the key keeps getting pressed even after thekeyToggle('w', 'up')
gets called. The issue mainly occurred in some software, mainly games.Based on comments on https://github.com/octalmage/robotjs/issues/252 and https://github.com/nut-tree/libnut-core/pull/87, removing the scan code for keyup event solve this certain issue.
The softwares (games) that have been tested: