mirror of
https://github.com/ipxe/ipxe
synced 2026-02-10 21:28:44 +03:00
[console] Handle remapping of scancode 86
The key with scancode 86 appears in the position between left shift and Z on a US keyboard, where it typically fails to exist entirely. Most US keyboard maps define this nonexistent key as generating "\|", with the notable exception of "loadkeys" which instead reports it as generating "<>". Both of these mapping choices duplicate keys that exist elsewhere in the map, which causes problems for our ASCII-based remapping mechanism. Work around these quirks by treating the key as generating "\|" with the high bit set, and making it subject to remapping. Where the BIOS generates "\|" as expected, this allows us to remap to the correct ASCII value. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -48,5 +48,8 @@ unsigned int key_remap ( unsigned int character ) {
|
||||
}
|
||||
}
|
||||
|
||||
/* Clear pseudo key flag */
|
||||
character &= ~KEYMAP_PSEUDO;
|
||||
|
||||
return character;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user