Flush keyboard buffer out of any keystrokes before waiting for user input

This commit is contained in:
2024-05-05 15:29:20 +02:00
parent 40e0dd8c5e
commit 07d7e06b2b

View File

@@ -106,6 +106,9 @@ BlDisplayBootMenu()
Events[0] = EfiSystemTable->ConIn->WaitForKey;
Events[1] = TimerEvent;
/* Flush keyboard buffer out of any keystrokes */
EfiSystemTable->ConIn->Reset(EfiSystemTable->ConIn, FALSE);
/* Infinite boot menu event loop */
while(TRUE)
{