EFI_KEY_DATA KeyData;\r
EFI_STATUS Status;\r
EFI_SIMPLE_POINTER_STATE MouseState;\r
- UINTN EventIndex;\r
BOOLEAN NoShiftState;\r
BOOLEAN LengthChange;\r
UINTN Size;\r
}\r
}\r
\r
- Status = gBS->WaitForEvent (1, &HMainEditor.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 (HMainEditor.TextInputEx->WaitForKeyEx);\r
+ if (!EFI_ERROR (Status)) {\r
Status = HMainEditor.TextInputEx->ReadKeyStrokeEx (HMainEditor.TextInputEx, &KeyData);\r
if (!EFI_ERROR (Status)) {\r
//\r
}\r
}\r
}\r
- //\r
- // after handling, refresh editor\r
- //\r
- HMainEditorRefresh ();\r
}\r
+ //\r
+ // after handling, refresh editor\r
+ //\r
+ HMainEditorRefresh ();\r
\r
} while (Status != EFI_OUT_OF_RESOURCES && !HEditorExit);\r
\r