jordansissel / xdotool

fake keyboard/mouse input, window management, and more
Other
3.29k stars 321 forks source link

The character ":" is typed as "Q" in VM window #457

Open acitd opened 7 months ago

acitd commented 7 months ago

I'm using the xdotool to automate the CLI installation of distros in a VM window (qemu). Everything works well, except the fact that the character ":" is typed as "Q". This is a problem mostly because when I have to type an url, like this "https://..." is typed like this "httpsQ//..." and therefore I have to fix it manually.

Some observations:

  1. It works as expected outside the VM window.
  2. I didn't found any other problem inside the VM window.
  3. Even if I don't use the type command (xdotool type ":") and I use other tricks like keeping the Shift key pressed and then clicking the button via the xdotool, the problem persist.
  4. Typing manually via Keyboard in the VM window, works as expected.
FascinatedBox commented 6 months ago

If you use xev as the target outside of the emulator, does it still work?

What does setxkbmap -print outside of the emulator show?

Inside the vm, does showkeys -a show that the keys are being sent correctly?