[console] Try to avoid problems caused by keycode 86
The "us" keyboard layout contains a mapping for keycode 86 (which seems not to correspond to any physical key on many US keyboards) to the ASCII character '<'. This mapping causes conflicts with the mapping for keycode 51, which also maps (with shift) to '<'. Change the keyboard mapping generator to choose the lowest keycode for each ASCII character as indicating the relevant mapping to use, on the basis that a lower keycode roughly indicates a "more normal" key. On a German keyboard, which has keys for both keycode 51 and keycode 86 present, this causes '<' to be remapped to ';', which is a closer match to typical user expectations. Reported-by: Sven Dreyer <sven@dreyer-net.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -36,6 +36,7 @@ struct key_mapping wo_mapping[] __keymap = {
|
||||
{ 0x38, 0x5f }, /* '8' => '_' */
|
||||
{ 0x3a, 0x4d }, /* ':' => 'M' */
|
||||
{ 0x3b, 0x6d }, /* ';' => 'm' */
|
||||
{ 0x3c, 0x2e }, /* '<' => '.' */
|
||||
{ 0x3e, 0x2f }, /* '>' => '/' */
|
||||
{ 0x40, 0x32 }, /* '@' => '2' */
|
||||
{ 0x41, 0x51 }, /* 'A' => 'Q' */
|
||||
|
||||
Reference in New Issue
Block a user