mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +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 */
|
/** "il" AltGr remapping */
|
||||||
static struct keymap_key il_altgr[] = {
|
static struct keymap_key il_altgr[] = {
|
||||||
|
{ 0x5c, 0x60 }, /* '\\' => '`' */
|
||||||
{ 0, 0 }
|
{ 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -176,6 +176,12 @@ class KeyLayout(UserDict[KeyModifiers, Sequence[Key]]):
|
|||||||
# Treat Ctrl-Backspace as producing Backspace rather than Ctrl-H
|
# Treat Ctrl-Backspace as producing Backspace rather than Ctrl-H
|
||||||
KeyModifiers.CTRL: [(KEY_BACKSPACE, 0x7f)],
|
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'"""
|
"""Fixups for erroneous keymappings produced by 'loadkeys -b'"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user