diff --git a/xtldr/textui.c b/xtldr/textui.c index 07e6793..107082b 100644 --- a/xtldr/textui.c +++ b/xtldr/textui.c @@ -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) {