aboutsummaryrefslogtreecommitdiff
path: root/src/hci/keymap/keymap_mt.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2011-03-16 21:31:16 +0000
committerMichael Brown <mcb30@ipxe.org>2011-03-16 21:43:56 +0000
commit48624cf94ab6ece5759ab71ad40c7e69f6430c23 (patch)
tree16eef504fdb3dda83177873b3227142e3438dec0 /src/hci/keymap/keymap_mt.c
parentdbb27c9c3ba6cdbc27a6d36a952a82a51dc11407 (diff)
downloadipxe-48624cf94ab6ece5759ab71ad40c7e69f6430c23.zip
ipxe-48624cf94ab6ece5759ab71ad40c7e69f6430c23.tar.gz
ipxe-48624cf94ab6ece5759ab71ad40c7e69f6430c23.tar.bz2
[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>
Diffstat (limited to 'src/hci/keymap/keymap_mt.c')
-rw-r--r--src/hci/keymap/keymap_mt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/hci/keymap/keymap_mt.c b/src/hci/keymap/keymap_mt.c
index e50e2b8..094a6fc 100644
--- a/src/hci/keymap/keymap_mt.c
+++ b/src/hci/keymap/keymap_mt.c
@@ -17,5 +17,4 @@ struct key_mapping mt_mapping[] __keymap = {
{ 0x40, 0x22 }, /* '@' => '"' */
{ 0x5c, 0x23 }, /* '\\' => '#' */
{ 0x7c, 0x7e }, /* '|' => '~' */
- { 0x7f, 0x08 }, /* 0x7f => Ctrl-H */
};