diff mbox

virtio-input: add missing KEY_COMPOSE mapping

Message ID 20171201084606.9889-1-lprosek@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ladi Prosek Dec. 1, 2017, 8:46 a.m. UTC
This key tends to be located somewhere between right Alt and right
Ctrl and is usually used for opening context menus.

Signed-off-by: Ladi Prosek <lprosek@redhat.com>
---
 hw/input/virtio-input-hid.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/hw/input/virtio-input-hid.c b/hw/input/virtio-input-hid.c
index e78faec0b1..387a026e10 100644
--- a/hw/input/virtio-input-hid.c
+++ b/hw/input/virtio-input-hid.c
@@ -139,6 +139,7 @@  static const unsigned int keymap_qcode[Q_KEY_CODE__MAX] = {
     [Q_KEY_CODE_META_L]              = KEY_LEFTMETA,
     [Q_KEY_CODE_META_R]              = KEY_RIGHTMETA,
     [Q_KEY_CODE_MENU]                = KEY_MENU,
+    [Q_KEY_CODE_COMPOSE]             = KEY_COMPOSE,
 };
 
 static const unsigned int keymap_button[INPUT_BUTTON__MAX] = {