]> Git Repo - qemu.git/commitdiff
virtio-input: add missing key mappings
authorLadi Prosek <[email protected]>
Wed, 30 Mar 2016 13:07:20 +0000 (15:07 +0200)
committerGerd Hoffmann <[email protected]>
Wed, 13 Apr 2016 13:52:28 +0000 (15:52 +0200)
KEY_PAUSE is flat out missing. KEY_SYSRQ already has a keycode
assigned but it's not what I'm seeing on my system. The mapping
doesn't appear to have to be unique so both keycodes now map to
KEY_SYSRQ which is what the "Keyboard PrintScreen", HID usage ID
0x46, translates to.

Signed-off-by: Ladi Prosek <[email protected]>
Message-id: 1459343240[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/input/virtio-input-hid.c

index 5d121571148593b61d65c68dbdcd6f1225fc8620..fe6d37fd731030e431490ff683fd3a9e39539a54 100644 (file)
@@ -121,6 +121,8 @@ static const unsigned int keymap_qcode[Q_KEY_CODE__MAX] = {
 
     [Q_KEY_CODE_CTRL_R]              = KEY_RIGHTCTRL,
     [Q_KEY_CODE_SYSRQ]               = KEY_SYSRQ,
+    [Q_KEY_CODE_PRINT]               = KEY_SYSRQ,
+    [Q_KEY_CODE_PAUSE]               = KEY_PAUSE,
     [Q_KEY_CODE_ALT_R]               = KEY_RIGHTALT,
 
     [Q_KEY_CODE_HOME]                = KEY_HOME,
This page took 0.025434 seconds and 4 git commands to generate.