]> git.proxmox.com Git - grub2.git/commit
efi/console: Implement getkeystatus() support
authorHans de Goede <hdegoede@redhat.com>
Wed, 15 Apr 2020 10:26:20 +0000 (12:26 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 21 Apr 2020 20:12:50 +0000 (22:12 +0200)
commitea138d11bef7e7ef433643fa1ec94d4fd0bef75b
tree460c5a7d24000c55518066f2973c4320693d338f
parent8bab36af603aa49fff628cd64722352fb96c3dd1
efi/console: Implement getkeystatus() support

Implement getkeystatus() support in the EFI console driver.

This is needed because the logic to determine if a key was pressed to make
the menu countdown stop will be changed by a later patch to also take into
account the SHIFT key being held down.

For this reason the EFI console driver has to support getkeystatus() to
allow detecting that event.

Note that if a non-modifier key gets pressed and repeated calls to
getkeystatus() are made then it will return the modifier status at the
time of the non-modifier key, until that key-press gets consumed by a
getkey() call.

This is a side-effect of how the EFI simple-text-input protocol works
and cannot be avoided.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/term/efi/console.c