Describe the bug
MS Windows has a special virtual keycode (VK) called VK_PACKET that indicates that the scan code is to be interpreted as a character code instead. This keycode is frequently used by applications that inject key events. It appears that VNC viewer ignores this keycode and sends no key events to the server. This bug likely also caused #1818.
To Reproduce
Steps to reproduce the behavior:
- In Keepass 2, create an entry with password
"a'a^a`a~a.
- In Windows, select Swedish keyboard layout.
- Connect to a remote server using Tiger VNC client and, on the remote server, open a text editor.
- Use Keepass 2 autotype feature to type the password into the VNC client.
- Notice the text
aaaaa appearing in the remote server's text editor.
Expected behavior
The text "a'a^a`a~a should appear.
Client (please complete the following information):
- OS: Windows 10 Pro
- VNC client: TigerVNC
- VNC client version: 1.12.0
Server (please complete the following information):
- OS: Debian
- VNC server: x11vnc
- VNC server version: 0.9.16
- Server downloaded from: NixOS
- Server was started using:
x11vnc -N -forever -loop100 -usepw -nevershared -clear_keys -v
Additional context
- My guess is that Keepass 2 will use VK_PACKET on any keyboard layout when auto-typing characters not found in that keyboard layout.
- You may add
-pipeinput "reopen:cat - > /tmp/keys.in.fifo" to the x11vnc arguments to get a text stream of the key events received by the server.
Describe the bug
MS Windows has a special virtual keycode (VK) called
VK_PACKETthat indicates that the scan code is to be interpreted as a character code instead. This keycode is frequently used by applications that inject key events. It appears that VNC viewer ignores this keycode and sends no key events to the server. This bug likely also caused #1818.To Reproduce
Steps to reproduce the behavior:
"a'a^a`a~a.aaaaaappearing in the remote server's text editor.Expected behavior
The text
"a'a^a`a~ashould appear.Client (please complete the following information):
Server (please complete the following information):
x11vnc -N -forever -loop100 -usepw -nevershared -clear_keys -vAdditional context
-pipeinput "reopen:cat - > /tmp/keys.in.fifo"to thex11vncarguments to get a text stream of the key events received by the server.