Flush keyboard buffer out of any keystrokes before waiting for user input
This commit is contained in:
parent
5a013e3ab5
commit
9625f1ad37
@ -106,6 +106,9 @@ BlDisplayBootMenu()
|
|||||||
Events[0] = EfiSystemTable->ConIn->WaitForKey;
|
Events[0] = EfiSystemTable->ConIn->WaitForKey;
|
||||||
Events[1] = TimerEvent;
|
Events[1] = TimerEvent;
|
||||||
|
|
||||||
|
/* Flush keyboard buffer out of any keystrokes */
|
||||||
|
EfiSystemTable->ConIn->Reset(EfiSystemTable->ConIn, FALSE);
|
||||||
|
|
||||||
/* Infinite boot menu event loop */
|
/* Infinite boot menu event loop */
|
||||||
while(TRUE)
|
while(TRUE)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user