From: gdong1 Date: Thu, 27 Oct 2016 17:02:54 +0000 (-0700) Subject: CorebootPayloadPkg: Add "Down" key to Boot Manager Menu X-Git-Tag: edk2-stable201903~5427 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=bb47667aa726cf86634f6ccbb445d080994f9e22 CorebootPayloadPkg: Add "Down" key to Boot Manager Menu Also add Down key to Boot Manager Menu since some serial terminals don't support F2 key. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Guo Dong Reviewed-by: Maurice Ma --- diff --git a/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c b/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c index 1546e4879a..5cb26e61f2 100644 --- a/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c +++ b/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c @@ -181,6 +181,7 @@ PlatformBootManagerBeforeConsole ( { EFI_INPUT_KEY Enter; EFI_INPUT_KEY F2; + EFI_INPUT_KEY Down; EFI_BOOT_MANAGER_LOAD_OPTION BootOption; PlatformConsoleInit (); @@ -200,6 +201,14 @@ PlatformBootManagerBeforeConsole ( EfiBootManagerGetBootManagerMenu (&BootOption); EfiBootManagerAddKeyOptionVariable (NULL, (UINT16) BootOption.OptionNumber, 0, &F2, NULL); + // + // Also add Down key to Boot Manager Menu since some serial terminals don't support F2 key. + // + Down.ScanCode = SCAN_DOWN; + Down.UnicodeChar = CHAR_NULL; + EfiBootManagerGetBootManagerMenu (&BootOption); + EfiBootManagerAddKeyOptionVariable (NULL, (UINT16) BootOption.OptionNumber, 0, &Down, NULL); + // // Install ready to lock. // This needs to be done before option rom dispatched. @@ -239,8 +248,8 @@ PlatformBootManagerAfterConsole ( Print ( L"\n" - L"F2 to enter Boot Manager Menu.\n" - L"ENTER to boot directly.\n" + L"F2 or Down to enter Boot Manager Menu.\n" + L"ENTER to boot directly.\n" L"\n" );