The game does not react to keyToggle(G, 'up'), only reacts to keyToggle(G, 'down')
Context
I've been using Robot.js on Windows to hold down a key to activate the microphone in a game (Dota2) that has a press-to-talk feature.
This game recently had an update, everything works as before, but the game stopped recognizing the key up. the game thinks I keep pressing the keyboard.
I have tested my program on pages like https://en.key-test.ru/ to see if the key up event really fired, and if it works.
I have tried holding down the key in the video game with AutoHotKey, and it works.
Could it be that the game needs to receive some extra data?
How are AutoHotKey and Robotjs different in this functionality?
Expected Behavior
The game should react to keyToggle(G, 'up')
Current Behavior
The game does not react to keyToggle(G, 'up'), only reacts to keyToggle(G, 'down')
Context
I've been using Robot.js on Windows to hold down a key to activate the microphone in a game (Dota2) that has a press-to-talk feature.
This game recently had an update, everything works as before, but the game stopped recognizing the key up. the game thinks I keep pressing the keyboard.
I have tested my program on pages like https://en.key-test.ru/ to see if the key up event really fired, and if it works.
I have tried holding down the key in the video game with AutoHotKey, and it works.
Could it be that the game needs to receive some extra data? How are AutoHotKey and Robotjs different in this functionality?
Your Environment