From a687a1d207f1b84e08f2a45fcbc0c0d8f0763214 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Fri, 23 Jan 2015 06:11:22 +0000 Subject: [PATCH] The default type is not returned by display engine, this code update the logic to return it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16647 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c index b9090d3702..8e5d3074d2 100644 --- a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c +++ b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c @@ -3280,6 +3280,9 @@ UiDisplayMenu ( if (FxConfirmPopup(HotKey->Action)) { gUserInput->Action = HotKey->Action; + if ((HotKey->Action & BROWSER_ACTION_DEFAULT) == BROWSER_ACTION_DEFAULT) { + gUserInput->DefaultId = HotKey->DefaultId; + } ControlFlag = CfExit; } else { Repaint = TRUE; -- 2.39.2