[console] Fix unreachable characters in "il" keymap

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/591/head
Michael Brown 2022-02-15 11:43:08 +00:00
parent c7d7819291
commit 164db2cc63
2 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,7 @@ static struct keymap_key il_basic[] = {
/** "il" AltGr remapping */
static struct keymap_key il_altgr[] = {
{ 0x5c, 0x60 }, /* '\\' => '`' */
{ 0, 0 }
};

View File

@ -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'"""