diff options
| author | Michael Brown | 2022-02-15 12:45:17 +0100 |
|---|---|---|
| committer | Michael Brown | 2022-02-15 14:37:54 +0100 |
| commit | a7a79ab12b1ba7b3873fccaa4778443c1577ad8e (patch) | |
| tree | 78c62f545cc5291b3f1cbe6b833121d6617f7ef6 /src | |
| parent | [console] Fix unreachable characters in "il" keymap (diff) | |
| download | ipxe-a7a79ab12b1ba7b3873fccaa4778443c1577ad8e.tar.gz ipxe-a7a79ab12b1ba7b3873fccaa4778443c1577ad8e.tar.xz ipxe-a7a79ab12b1ba7b3873fccaa4778443c1577ad8e.zip | |
[console] Fix unreachable characters in "mt" keymap
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/hci/keymap/keymap_mt.c | 1 | ||||
| -rwxr-xr-x | src/util/genkeymap.py | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/hci/keymap/keymap_mt.c b/src/hci/keymap/keymap_mt.c index f5baf6907..0a9a110b0 100644 --- a/src/hci/keymap/keymap_mt.c +++ b/src/hci/keymap/keymap_mt.c @@ -22,7 +22,6 @@ static struct keymap_key mt_basic[] = { /** "mt" AltGr remapping */ static struct keymap_key mt_altgr[] = { - { 0x2d, 0x5c }, /* '-' => '\\' */ { 0, 0 } }; diff --git a/src/util/genkeymap.py b/src/util/genkeymap.py index 5f87a89d2..e471cd31a 100755 --- a/src/util/genkeymap.py +++ b/src/util/genkeymap.py @@ -182,6 +182,11 @@ class KeyLayout(UserDict[KeyModifiers, Sequence[Key]]): KeyModifiers.ALTGR: [(0x28, ord('\'')), (0x2b, ord('`')), (0x35, ord('/'))], }, + 'mt': { + # Redefine erroneous key 86 as generating "\\|" + KeyModifiers.NONE: [(KEY_NON_US, ord('\\'))], + KeyModifiers.SHIFT: [(KEY_NON_US, ord('|'))], + }, } """Fixups for erroneous keymappings produced by 'loadkeys -b'""" |
