You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the Windows 10 system, everything is working very well. However, on Linux, keyboard.hook(on_key_event) not only hooks the user's input but also hooks keyboard.send or keyboard.write, sometimes leading to an infinite loop.
For example, if the user types 'IA', then I want the script to send 'Backspace*2' and rewrite 'ÎA'. Here, the library again hooks the 'A' sent by keyboard.write and falls into an infinite loop.
I have a workaround for Linux only, that I read the device id of user's real keyboard and the keyboard library to exclude. However, this does not work every time.
The text was updated successfully, but these errors were encountered:
On the Windows 10 system, everything is working very well. However, on Linux,
keyboard.hook(on_key_event)
not only hooks the user's input but also hookskeyboard.send
orkeyboard.write
, sometimes leading to an infinite loop.For example, if the user types 'IA', then I want the script to send 'Backspace*2' and rewrite 'ÎA'. Here, the library again hooks the 'A' sent by
keyboard.write
and falls into an infinite loop.I have a workaround for Linux only, that I read the
device
id ofuser's real keyboard
and thekeyboard library
to exclude. However, this does not work every time.The text was updated successfully, but these errors were encountered: