Skip to content
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

Focused program does not react to keyup event #757

Open
mxlauc opened this issue Apr 21, 2024 · 0 comments
Open

Focused program does not react to keyup event #757

mxlauc opened this issue Apr 21, 2024 · 0 comments

Comments

@mxlauc
Copy link

mxlauc commented Apr 21, 2024

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

  • RobotJS version: 0.6.0
  • Node.js version: 20.10.0
  • npm version: 10.2.3
  • Operating System: Windows 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant