]> xenbits.xensource.com Git - qemu-upstream-unstable.git/commit
hw/input/hid.c Fix capslock hid code
authorDinar Valeev <dvaleev@suse.com>
Wed, 21 Jan 2015 22:48:41 +0000 (23:48 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 23 Feb 2015 00:36:50 +0000 (18:36 -0600)
commit4ac8b01fa8de00bb649d0b87c1dc542e50dcf530
treea5d1fff533a54747029998eabcf2819ce054e4ee
parente60fb7af55b3321431ffa6f3523f11111ae66714
hw/input/hid.c Fix capslock hid code

When ever USB keyboard is used, e.g. '-usbdevice keyboard' pressing
caps lock key send 0x32 hid code, which is treated as backslash.
Instead it should be 0x39 code. This affects sending uppercase keys,
as they typed whith caps lock active.

While on x86 this can be workarounded by using ps/2 protocol. On
Power it is crusial as we don't have anything else than USB.

This is fixes guest automation tasts over vnc.

Signed-off-by: Dinar Valeev <dvaleev@suse.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 0ee4de5840ccc1072459ec68062bfb63c888a94d)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/input/hid.c