mirror of
https://github.com/ipxe/ipxe
synced 2026-01-27 09:58:31 +03:00
[console] Fix unreachable characters in "il" keymap
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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'"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user