|
|
4a2fec |
From bfd55b42182f0c0c43ad0e251083a941f6af0a45 Mon Sep 17 00:00:00 2001
|
|
|
4a2fec |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
4a2fec |
Date: Fri, 12 Jan 2018 10:45:52 +0100
|
|
|
4a2fec |
Subject: [PATCH 1/8] Drop 105th key from en-us keymap.
|
|
|
4a2fec |
|
|
|
4a2fec |
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
4a2fec |
Message-id: <20180112104552.13782-2-kraxel@redhat.com>
|
|
|
4a2fec |
Patchwork-id: 78561
|
|
|
4a2fec |
O-Subject: [RHV7.5 qemu-kvm-rhev PATCH 1/1] Drop 105th key from en-us keymap.
|
|
|
4a2fec |
Bugzilla: 1513870
|
|
|
4a2fec |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
4a2fec |
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
|
4a2fec |
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
|
|
|
4a2fec |
|
|
|
4a2fec |
Qemu keymap code has problems to deal with the case that multiple
|
|
|
4a2fec |
keyscodes can generate the same keysym. In this specific case both
|
|
|
4a2fec |
shift+comma and the 105th key map to "<". qemu picks the 105th key
|
|
|
4a2fec |
instead of comma, the guest sees shift+105th key and interprets that
|
|
|
4a2fec |
as ">". Oops.
|
|
|
4a2fec |
|
|
|
4a2fec |
The correct fix for that is to use not only the keysym for the reverse
|
|
|
4a2fec |
keycode lookup, but also the modifier state. So "<" with shift gets
|
|
|
4a2fec |
mapped to shift+command and "<" without shift to the 105th key. That
|
|
|
4a2fec |
requires some non-trivial changes in qemu though as right now the
|
|
|
4a2fec |
reverse keymap can hold one entry per keysym only.
|
|
|
4a2fec |
|
|
|
4a2fec |
Given that we are pretty late in the 7.5 cycle we take the shortcut to
|
|
|
4a2fec |
simply remove the mappings for the 105th key (which isn't present anyway
|
|
|
4a2fec |
on physical 104 key us keyboards, only 105 key intl keyboards running
|
|
|
4a2fec |
with en-us keymap have that), to workaround this issue for the most
|
|
|
4a2fec |
annonying case.
|
|
|
4a2fec |
|
|
|
4a2fec |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
4a2fec |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
4a2fec |
---
|
|
|
4a2fec |
pc-bios/keymaps/en-us | 6 ------
|
|
|
4a2fec |
1 file changed, 6 deletions(-)
|
|
|
4a2fec |
|
|
|
4a2fec |
diff --git a/pc-bios/keymaps/en-us b/pc-bios/keymaps/en-us
|
|
|
4a2fec |
index a70e03a..e518a9d 100644
|
|
|
4a2fec |
--- a/pc-bios/keymaps/en-us
|
|
|
4a2fec |
+++ b/pc-bios/keymaps/en-us
|
|
|
4a2fec |
@@ -343,12 +343,6 @@ KP_Decimal 0x53 numlock
|
|
|
4a2fec |
|
|
|
4a2fec |
# evdev 85 (0x55): no evdev -> QKeyCode mapping (xkb keysym NoSymbol)
|
|
|
4a2fec |
|
|
|
4a2fec |
-# evdev 86 (0x56), QKeyCode "less", number 0x56
|
|
|
4a2fec |
-less 0x56
|
|
|
4a2fec |
-greater 0x56 shift
|
|
|
4a2fec |
-bar 0x56 altgr
|
|
|
4a2fec |
-brokenbar 0x56 shift altgr
|
|
|
4a2fec |
-
|
|
|
4a2fec |
# evdev 87 (0x57), QKeyCode "f11", number 0x57
|
|
|
4a2fec |
F11 0x57
|
|
|
4a2fec |
|
|
|
4a2fec |
--
|
|
|
4a2fec |
1.8.3.1
|
|
|
4a2fec |
|