]> git.proxmox.com Git - qemu.git/commit
vnc: fix numlock+capslock tracking
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 14 Jan 2011 09:56:54 +0000 (10:56 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 24 Jan 2011 16:21:34 +0000 (17:21 +0100)
commit9892088b52da05c3944e84982922fa984e048044
tree8b64c040d9459da504481309b9e09d69a028c43a
parent42292d4e51ac01eb28360d53127337fe275c39c5
vnc: fix numlock+capslock tracking

This patch makes the numlock+capslock tracking logic only look at
keydown events.  Without this patch the vnc server will insert
bogous capslock keypress in case it sees the following key sequence:

  shift down --- 'A' down --- shift up  --- 'A' up
                                         ^ here

It doesn't hurt with a PS/2 keyboard, but it disturbs the USB Keyboard.
And with the key event queue just added to the usb keyboard the guest
will actually notice.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc.c