aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2022-02-15 11:43:08 +0000
committerMichael Brown <mcb30@ipxe.org>2022-02-15 13:37:44 +0000
commit164db2cc630932a91119b1aee5fa299d17716819 (patch)
tree07ca2c7449265426f7d92ba3b8c3e9b279b20417 /src/util
parentc7d78192919bfa62fde33650e1506e902816eec3 (diff)
downloadipxe-164db2cc630932a91119b1aee5fa299d17716819.tar.gz
[console] Fix unreachable characters in "il" keymap
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/genkeymap.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/genkeymap.py b/src/util/genkeymap.py
index 42ccee175..5f87a89d2 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'"""