]> git.ipfire.org Git - thirdparty/grub.git/commit
term/efi/console: Treat key.scan_code 0x0102 (suspend) as Enter
authorKancy Joe <kancy2333@outlook.com>
Tue, 19 Aug 2025 15:12:03 +0000 (23:12 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 4 Sep 2025 12:37:20 +0000 (14:37 +0200)
commit49e76ad16f8347959222598d08734788720ee108
tree9d2ccb399df64ecf771cae2b5209d100521a022c
parentde72f3998573f9a607bbba87f0ca1c091d57bad0
term/efi/console: Treat key.scan_code 0x0102 (suspend) as Enter

Some Qualcomm-based UEFI platforms only provide volume up, volume down,
and power keys. The volume keys are already mapped to SCAN_UP and SCAN_DOWN,
while the power key is mapped to SCAN_SUSPEND (key.scan_code 0x0102).

On such devices, the power key is commonly used as the Enter (confirm)
button, since no dedicated Enter key exists. This patch treats key.scan_code
0x0102 as Enter to improve usability on these platforms.

Signed-off-by: Kancy Joe <kancy2333@outlook.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/term/efi/console.c