EFI_KEY_DATA KeyData;\r
EFI_STATUS Status;\r
EFI_SIMPLE_POINTER_STATE MouseState;\r
- UINTN EventIndex;\r
BOOLEAN NoShiftState;\r
\r
do {\r
}\r
}\r
\r
- Status = gBS->WaitForEvent (1, &MainEditor.TextInputEx->WaitForKeyEx, &EventIndex);\r
- if (!EFI_ERROR (Status) && EventIndex == 0) {\r
+ //\r
+ // CheckEvent() returns Success when non-partial key is pressed.\r
+ //\r
+ Status = gBS->CheckEvent (MainEditor.TextInputEx->WaitForKeyEx);\r
+ if (!EFI_ERROR (Status)) {\r
Status = MainEditor.TextInputEx->ReadKeyStrokeEx (MainEditor.TextInputEx, &KeyData);\r
if (!EFI_ERROR (Status)) {\r
//\r
}\r
\r
}\r
- //\r
- // after handling, refresh editor\r
- //\r
- MainEditorRefresh ();\r
}\r
+ //\r
+ // after handling, refresh editor\r
+ //\r
+ MainEditorRefresh ();\r
\r
} while (Status != EFI_OUT_OF_RESOURCES && !EditorExit);\r
\r