Skip to contentSkip to conversation

virtio-input: add missing key mappings

PATCH New Ladi Prosek 1 participant 1 message Mar 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-input: add missing key mappings

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.

---
 hw/input/virtio-input-hid.c | 2 ++
 1 file changed, 2 insertions(+)
hw/input/virtio-input-hid.c +2 -0
index 5d12157..fe6d37f 100644
@@ -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,
Signature · 1 line
2.5.0