MdeModulePkg/BdsDxe: Forward any key for booting

Pressing escape will bring a user to the boot manager. Pressing any
other key will continue booting, forwarding the key to systemd-boot.
This commit is contained in:
Tim Crawford
2020-02-11 07:21:42 -07:00
parent f300ed8297
commit 4f9743107d

View File

@ -330,7 +330,8 @@ BdsWait (
// Can be removed after all keyboard drivers invoke callback in timer callback. // Can be removed after all keyboard drivers invoke callback in timer callback.
if (HotkeyTriggered != NULL) { if (HotkeyTriggered != NULL) {
Status = BdsWaitForSingleEvent (HotkeyTriggered, EFI_TIMER_PERIOD_SECONDS (1)); //Status = BdsWaitForSingleEvent (HotkeyTriggered, EFI_TIMER_PERIOD_SECONDS (1));
Status = BdsWaitForSingleEvent (gST->ConIn->WaitForKey, EFI_TIMER_PERIOD_SECONDS (1));
if (!EFI_ERROR (Status)) { if (!EFI_ERROR (Status)) {
break; break;
} }
@ -1044,7 +1045,7 @@ BdsEntry (
// //
// BdsReadKeys() can be removed after all keyboard drivers invoke callback in timer callback. // BdsReadKeys() can be removed after all keyboard drivers invoke callback in timer callback.
// //
BdsReadKeys (); //BdsReadKeys ();
EfiBootManagerHotkeyBoot (); EfiBootManagerHotkeyBoot ();