From bb47667aa726cf86634f6ccbb445d080994f9e22 Mon Sep 17 00:00:00 2001 From: gdong1 Date: Thu, 27 Oct 2016 10:02:54 -0700 Subject: [PATCH] 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 --- .../PlatformBootManagerLib/PlatformBootManager.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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" ); -- 2.39.2