YesNo: Clear the button queue so a latent keypress doesn't skip the prompt
Change-Id: I055db211f3cceb38b2df00177451c08a3da33426
This commit is contained in:
parent
4aa749b59d
commit
869a8bfbe7
1 changed files with 1 additions and 0 deletions
|
@ -166,6 +166,7 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message,
|
|||
|
||||
/* make sure to eat any extranous keypresses */
|
||||
action_wait_for_release();
|
||||
button_clear_queue();
|
||||
|
||||
while (result==-1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue