Open jd-solanki opened 2 years ago
Thank you for your report.
This is probably caused by the fact that although Controller.type
appears to be a simple procedure outputting characters, it has to do a lot behind the scenes, some of which modifies system global state
When I run your script on my computer (Ubuntu 22.04, Wayland session, testing in Chrome running under XWayland) it does print the expected string, so this behaviour seems to be system dependent. Perhaps a keyboard layout issue, or an XWayland / XOrg proper issue?
Same issue appears even when using keyboard.type() or keyboard.press() The issue gets worse over time as characters get replaced more and more. Before only one key was wrong, now its two. Same version, running debian 11
Description Hi,
I have a simple script which types back what I feed to it. Problem is if I tell it to print string
59y#d/8^Pw/ewh%&
it print59y#d/8^Pw/5
. Moreover, I tell to print59y#d/8^Pw/
it still prints the same59y#d/8^Pw/5
🤯Platform and pynput version
To Reproduce
Side Effects
self.listener.stop()
is not stopping the listener.I also tried printing the characters one by one but still the same issue: