hw/input/hid.c Fix capslock hid code
commit0ee4de5840ccc1072459ec68062bfb63c888a94d
authorDinar Valeev <dvaleev@suse.com>
Wed, 21 Jan 2015 22:48:41 +0000 (21 23:48 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 22 Jan 2015 11:19:48 +0000 (22 12:19 +0100)
tree6e3e62e70944f27a1ffaa59c31554440c0fc1779
parentba4d26064e8c42711a1a6eb287cedac75deb1478
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>
hw/input/hid.c