]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[console] Try to avoid problems caused by keycode 86
authorMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 21:31:16 +0000 (21:31 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 21:43:56 +0000 (21:43 +0000)
commit48624cf94ab6ece5759ab71ad40c7e69f6430c23
tree16eef504fdb3dda83177873b3227142e3438dec0
parentdbb27c9c3ba6cdbc27a6d36a952a82a51dc11407
[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>
19 files changed:
src/hci/keymap/keymap_al.c
src/hci/keymap/keymap_cz.c
src/hci/keymap/keymap_de.c
src/hci/keymap/keymap_dk.c
src/hci/keymap/keymap_es.c
src/hci/keymap/keymap_et.c
src/hci/keymap/keymap_fi.c
src/hci/keymap/keymap_fr.c
src/hci/keymap/keymap_it.c
src/hci/keymap/keymap_lt.c
src/hci/keymap/keymap_mt.c
src/hci/keymap/keymap_nl.c
src/hci/keymap/keymap_sg.c
src/hci/keymap/keymap_sr.c
src/hci/keymap/keymap_th.c
src/hci/keymap/keymap_ua.c
src/hci/keymap/keymap_uk.c
src/hci/keymap/keymap_wo.c
src/util/genkeymap.pl