]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[console] Fix unreachable characters in "il" keymap
authorMichael Brown <mcb30@ipxe.org>
Tue, 15 Feb 2022 11:43:08 +0000 (11:43 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 15 Feb 2022 13:37:44 +0000 (13:37 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/hci/keymap/keymap_il.c
src/util/genkeymap.py

index e3061fa542a5c9d34fc14e6cb2a1330862cf1613..95e33a0bd30cee0740266d08fc33620c204ea9b5 100644 (file)
@@ -31,6 +31,7 @@ static struct keymap_key il_basic[] = {
 
 /** "il" AltGr remapping */
 static struct keymap_key il_altgr[] = {
+       { 0x5c, 0x60 }, /* '\\' => '`' */
        { 0, 0 }
 };
 
index 42ccee175aa31f771f97f146fce3363bdd54b305..5f87a89d2383d4aa47490ab607a8ad8875b8d9dd 100755 (executable)
@@ -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'"""