Flush keyboard buffer out of any keystrokes before waiting for user input
This commit is contained in:
parent
40e0dd8c5e
commit
07d7e06b2b
|
@ -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