-
Notifications
You must be signed in to change notification settings - Fork 66
Some way to detect repeating? #8
Comments
On 19/08/15 14:54, Stanislav Seletskiy wrote:
I had to ditch python-xlib, since it didn't really allow to use XKB. If all you need is the sequence number, it's already in there. You could call XkbSetDetectableAutoRepeat so that KeyRelease is never You can also detect a repeat by checking a release followed by a repeat keylistener.py contains a self-test at the bottom when run stand-alone. |
I pushed some code to detect key repeat. I think it could be useful (maybe) to show the repeat in a different way. I tried to change the color of the text to grey for repeats, but I find it distracting. |
@wavexx: Wow, thank you! Get ready to accept new PR 😄 |
I guess we can close this |
I want to make it possible for screenkey to act as key logger for analyzing my productivity. But it looks like python-xlib is lacking of required sequence_number field in XKeyEvent structure, which is required to detect key repeating. I have decent repeat rate/delay (140/100), so I do not want to pollute history of logged keys.
Do you have any ideas how to achieve that?
The text was updated successfully, but these errors were encountered: