[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-stable] Fwd: [PULL 3/3] hw/input/hid.c Fix capslock hid code
From: |
Paolo Bonzini |
Subject: |
[Qemu-stable] Fwd: [PULL 3/3] hw/input/hid.c Fix capslock hid code |
Date: |
Thu, 22 Jan 2015 13:51:42 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
This is commit 0ee4de5840ccc1072459ec68062bfb63c888a94d.
Paolo
-------- Forwarded Message --------
Subject: [PULL 3/3] hw/input/hid.c Fix capslock hid code
Date: Thu, 22 Jan 2015 12:32:53 +0100
From: Gerd Hoffmann <address@hidden>
To: address@hidden
CC: Dinar Valeev <address@hidden>, Gerd Hoffmann <address@hidden>
Newsgroups: gmane.comp.emulators.qemu
References: <address@hidden>
From: Dinar Valeev <address@hidden>
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 <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/input/hid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/input/hid.c b/hw/input/hid.c
index ad18555..6841cb8 100644
--- a/hw/input/hid.c
+++ b/hw/input/hid.c
@@ -41,7 +41,7 @@ static const uint8_t hid_usage_keys[0x100] = {
0x07, 0x09, 0x0a, 0x0b, 0x0d, 0x0e, 0x0f, 0x33,
0x34, 0x35, 0xe1, 0x31, 0x1d, 0x1b, 0x06, 0x19,
0x05, 0x11, 0x10, 0x36, 0x37, 0x38, 0xe5, 0x55,
- 0xe2, 0x2c, 0x32, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e,
+ 0xe2, 0x2c, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e,
0x3f, 0x40, 0x41, 0x42, 0x43, 0x53, 0x47, 0x5f,
0x60, 0x61, 0x56, 0x5c, 0x5d, 0x5e, 0x57, 0x59,
0x5a, 0x5b, 0x62, 0x63, 0x00, 0x00, 0x00, 0x44,
--
1.8.3.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-stable] Fwd: [PULL 3/3] hw/input/hid.c Fix capslock hid code,
Paolo Bonzini <=