lucassklp / Desktop.Robot

A library used to control your mouse and keyboard programmatically in .NET Core
MIT License
139 stars 23 forks source link

Keys being dropped #27

Open Beyley opened 2 years ago

Beyley commented 2 years ago

OS: Arch Linux x86_64

I have an application that takes in a chord of keypresses and outputs an according character using XGrabKey/XUngrabKey/XQueryKeymap, when trying to use Desktop.Robot to type the characters, sometimes chars i type just dont appear, i make sure to ungrab all my keys before running it, and doing XSync and XFlush before and after running Robot.KeyPress, and yet even though the codepath is definitely being run, i get no key output sometimes

Video showcase of the bug

Project source code

Beyley commented 2 years ago

Hm, after some more testing, the issue goes away if i make the chord go off when no keys are held anymore instead of when the first key stops being held, not sure who is at fault here then