SnosMe / uiohook-napi

MIT License
162 stars 37 forks source link

keyToggle only keep some keys pressed. #35

Open bikutaa-dev opened 7 months ago

bikutaa-dev commented 7 months ago

Hey, good work on this, but I'm a bit confused on something, the keytoggle function set to toggle down only seems to hold some keys pressed. When tested with "Shift" it holds the key down and as expected any typed letter is uppercased while its toggled down. But with letter such as "a" it only outputs one "a" and nothing more, when the expected behavior (for me) is that will keep outputting "a" until it toggles up.

Is this a error or intended behavior?

Update: Okay interesting, done some more testing, in game it seems to recognize that any key is pressed down, but any text editor or text field only type a single characters.

Update 2: Though it would be also worth mentioning that the keyTap function don't seems to be picked up in most games, while the toggle does. But it is picked up in text editors and textboxes.