aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/hci/keymap/keymap_mt.c1
-rwxr-xr-xsrc/util/genkeymap.py5
2 files changed, 5 insertions, 1 deletions
diff --git a/src/hci/keymap/keymap_mt.c b/src/hci/keymap/keymap_mt.c
index f5baf6907..0a9a110b0 100644
--- a/src/hci/keymap/keymap_mt.c
+++ b/src/hci/keymap/keymap_mt.c
@@ -22,7 +22,6 @@ static struct keymap_key mt_basic[] = {
/** "mt" AltGr remapping */
static struct keymap_key mt_altgr[] = {
- { 0x2d, 0x5c }, /* '-' => '\\' */
{ 0, 0 }
};
diff --git a/src/util/genkeymap.py b/src/util/genkeymap.py
index 5f87a89d2..e471cd31a 100755
--- a/src/util/genkeymap.py
+++ b/src/util/genkeymap.py
@@ -182,6 +182,11 @@ class KeyLayout(UserDict[KeyModifiers, Sequence[Key]]):
KeyModifiers.ALTGR: [(0x28, ord('\'')), (0x2b, ord('`')),
(0x35, ord('/'))],
},
+ 'mt': {
+ # Redefine erroneous key 86 as generating "\\|"
+ KeyModifiers.NONE: [(KEY_NON_US, ord('\\'))],
+ KeyModifiers.SHIFT: [(KEY_NON_US, ord('|'))],
+ },
}
"""Fixups for erroneous keymappings produced by 'loadkeys -b'"""