aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hci/keymap/keymap_il.c1
-rwxr-xr-xsrc/util/genkeymap.py6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/hci/keymap/keymap_il.c b/src/hci/keymap/keymap_il.c
index e3061fa..95e33a0 100644
--- a/src/hci/keymap/keymap_il.c
+++ b/src/hci/keymap/keymap_il.c
@@ -31,6 +31,7 @@ static struct keymap_key il_basic[] = {
/** "il" AltGr remapping */
static struct keymap_key il_altgr[] = {
+ { 0x5c, 0x60 }, /* '\\' => '`' */
{ 0, 0 }
};
diff --git a/src/util/genkeymap.py b/src/util/genkeymap.py
index 42ccee1..5f87a89 100755
--- a/src/util/genkeymap.py
+++ b/src/util/genkeymap.py
@@ -176,6 +176,12 @@ class KeyLayout(UserDict[KeyModifiers, Sequence[Key]]):
# Treat Ctrl-Backspace as producing Backspace rather than Ctrl-H
KeyModifiers.CTRL: [(KEY_BACKSPACE, 0x7f)],
},
+ 'il': {
+ # Redefine some otherwise unreachable ASCII characters
+ # using the closest available approximation
+ KeyModifiers.ALTGR: [(0x28, ord('\'')), (0x2b, ord('`')),
+ (0x35, ord('/'))],
+ },
}
"""Fixups for erroneous keymappings produced by 'loadkeys -b'"""