input: add support for FN1 - FN10 on crosswire kbd
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 23 Oct 2020 18:52:26 +0000 (20:52 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 9 Nov 2020 16:28:17 +0000 (17:28 +0100)
commitb055a05b989cb67484d2cef62b784896914ceb58
tree06399720fa83b690433835353023406bd800207e
parent2fb3ed2cbc5012718c9cfbfae7fcf87daa000e9b
input: add support for FN1 - FN10 on crosswire kbd

Chromebooks and the sandbox use a crosswire keyboard with function keys
FN1 - FN10. These keys are needed when running UEFI applications like GRUB
or the UEFI SCT.

Add support for these keys when translating from key codes to
ECMA-48 (or withdrawn ANSI 3.64) escape sequences.

All escape sequences start with 0x1b. So we should not repeat this
byte in the kbd_to_ansi364 table.

For testing use:

sandbox_defconfig + CONFIG_EFI_SELFTEST=y

$ ./u-boot -D -l

=> setenv efi_selftest extended text input
=> bootefi selftest

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/input/input.c