grub/grub-core/term
Hans de Goede edece25a77 efi/console: Fix the "enter" key not working on x86 tablets
Most 8" or 7" x86 Windows 10 tablets come with volume up/down buttons and
a power-button. In their UEFI these are almost always mapped to arrow
up/down and enter.

Pressing the volume buttons (sometimes by accident) will stop the
menu countdown, but the power-button / "enter" key was not being recognized
as enter, so the user would be stuck at the grub menu.

The problem is that these tablets send scan_code 13 or 0x0d for the
power-button, which officialy maps to the F3 key. They also set
unicode_char to 0x0d.

This commit recognizes the special case of both scan_code and unicode_char
being set to 0x0d and treats this as an enter key press.

This fixes things getting stuck at the grub-menu and allows the user
to choice a grub-menu entry using the buttons on the tablet.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2018-07-11 11:53:28 +02:00
..
arc * grub-core/term/arc/console.c: Add missing cast to silence warning. 2013-11-24 05:05:34 +01:00
arm arm_coreboot: Add Chromebook keyboard driver. 2017-05-09 08:47:34 +02:00
efi efi/console: Fix the "enter" key not working on x86 tablets 2018-07-11 11:53:28 +02:00
i386 core: use GRUB_TERM_ definitions when handling term characters 2017-08-07 19:28:22 +02:00
ieee1275 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels. 2013-11-10 17:53:11 +01:00
uboot Add progress module to display load progress of files. 2013-10-22 16:42:20 -02:00
xen Remove xen VFB. 2013-12-18 18:43:09 +01:00
at_keyboard.c at_keyboard: Fix falco chromebook case. 2017-05-09 14:27:52 +02:00
gfxterm.c gfxterm: Fix clearing of cursor. 2017-01-31 18:49:37 +01:00
gfxterm_background.c Detach optional parts of gfxterm and integrate in with coreboot init. 2013-05-31 00:42:33 +02:00
morse.c Add progress module to display load progress of files. 2013-10-22 16:42:20 -02:00
ns8250.c Avoid division by zero in serial. 2015-01-21 17:42:13 +01:00
ps2.c at_keyboard: Split protocol from controller code. 2017-05-08 21:41:22 +02:00
serial.c Avoid division by zero in serial. 2015-01-21 17:42:13 +01:00
spkmodem.c Add progress module to display load progress of files. 2013-10-22 16:42:20 -02:00
terminfo.c core: use GRUB_TERM_ definitions when handling term characters 2017-08-07 19:28:22 +02:00
tparm.c Enable -Wformat=2 if it's supported. 2013-12-21 15:28:28 +01:00
usb_keyboard.c usb_keyboard: Remove useless include 2016-02-22 20:05:54 +01:00