mirror of https://github.com/ipxe/ipxe.git
[console] Fix unreachable characters in "il" keymap
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/591/head
parent
c7d7819291
commit
164db2cc63
|
@ -31,6 +31,7 @@ static struct keymap_key il_basic[] = {
|
|||
|
||||
/** "il" AltGr remapping */
|
||||
static struct keymap_key il_altgr[] = {
|
||||
{ 0x5c, 0x60 }, /* '\\' => '`' */
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
|
|
@ -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'"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue