aboutsummaryrefslogtreecommitdiffstats
path: root/src/hci/keymap/keymap_il.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2022-02-16 15:19:35 +0000
committerMichael Brown <mcb30@ipxe.org>2022-02-16 15:31:47 +0000
commitbc5c612f756b11c08e5e1eaeee3c1fd91252534d (patch)
tree5068ece4582bf3f2da30bfb35f42ab53984df155 /src/hci/keymap/keymap_il.c
parent304333dace992ea4b876a074c42bb7fd752137ca (diff)
downloadipxe-bc5c612f756b11c08e5e1eaeee3c1fd91252534d.tar.gz
[console] Include mappings for AltGr-Shift-<key>
The BIOS console's interpretation of LShift+RShift as equivalent to AltGr requires the shifted ASCII characters to be present in the AltGr mapping table, to allow AltGr-Shift-<key> to be interpreted in the same way as AltGr-<key>. For keyboard layouts that have different ASCII characters for AltGr-<key> and AltGr-Shift-<key>, this will potentially leave the character for AltGr-<key> inaccessible via the BIOS console if the BIOS requires the use of the LShift+RShift workaround. This theoretically affects the numeric keys in the Lithuanian ("lt") keyboard layout (where the numerals are accessed via AltGr-<key> and punctuation characters via AltGr-Shift-<key>), but the simple workaround for that keyboard layout is to avoid using AltGr and Shift entirely since the unmodified numeric keys are not remapped anyway. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/keymap/keymap_il.c')
-rw-r--r--src/hci/keymap/keymap_il.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hci/keymap/keymap_il.c b/src/hci/keymap/keymap_il.c
index 95e33a0bd..b11e7ce71 100644
--- a/src/hci/keymap/keymap_il.c
+++ b/src/hci/keymap/keymap_il.c
@@ -31,7 +31,12 @@ static struct keymap_key il_basic[] = {
/** "il" AltGr remapping */
static struct keymap_key il_altgr[] = {
+ { 0x22, 0x27 }, /* '"' => '\'' */
+ { 0x3f, 0x2f }, /* '?' => '/' */
{ 0x5c, 0x60 }, /* '\\' => '`' */
+ { 0x71, 0x2f }, /* 'q' => '/' */
+ { 0x77, 0x27 }, /* 'w' => '\'' */
+ { 0x7c, 0x60 }, /* '|' => '`' */
{ 0, 0 }
};