Revision: 14208
          http://edk2.svn.sourceforge.net/edk2/?rev=14208&view=rev
Author:   ydong10
Date:     2013-03-15 02:53:56 +0000 (Fri, 15 Mar 2013)
Log Message:
-----------
Refine the logic about gFunctionKeySetting, avoid some HII drivers can't show 
the hotkey info.
Also add missing code in UI.c

Signed-off-by: Eric Dong <[email protected]>
Reviewed-by: Liming Gao <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
    trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c

Modified: trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c   2013-03-15 
02:39:22 UTC (rev 14207)
+++ trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c   2013-03-15 
02:53:56 UTC (rev 14208)
@@ -305,8 +305,6 @@
   //
   InitializeBrowserStrings ();
 
-  gFunctionKeySetting = ENABLE_FUNCTION_KEY_SETTING;
-
   //
   // Ensure we are in Text mode
   //
@@ -4009,6 +4007,8 @@
     }
   }
 
+  gFunctionKeySetting = ENABLE_FUNCTION_KEY_SETTING;
+
   if ((gClassOfVfr & FORMSET_CLASS_FRONT_PAGE) == FORMSET_CLASS_FRONT_PAGE) {
     gFrontPageHandle = FormSet->HiiHandle;
     gFunctionKeySetting = NONE_FUNCTION_KEY_SETTING;

Modified: trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c      2013-03-15 
02:39:22 UTC (rev 14207)
+++ trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c      2013-03-15 
02:53:56 UTC (rev 14208)
@@ -3285,7 +3285,8 @@
           // Check whether Key matches the registered hot key.
           //
           HotKey = NULL;
-          if ((gBrowserSettingScope == SystemLevel) || (gFunctionKeySetting != 
NONE_FUNCTION_KEY_SETTING)) {
+          if ((gBrowserSettingScope == SystemLevel) || 
+              (Selection->FormEditable && gFunctionKeySetting != 
NONE_FUNCTION_KEY_SETTING)) {
             HotKey = GetHotKeyFromRegisterList (&Key);
           }
           if (HotKey != NULL) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to