Discard hotkey keystroke for text buttons

This commit is contained in:
Nic Soudée 2022-01-21 14:59:14 -05:00 committed by zoner
parent 2f066b1b25
commit a806a332ce

View File

@ -570,6 +570,11 @@ byte Readline_ex_unicode(word x_pos, word y_pos, char * str, word * str_unicode,
Wait_end_of_click();
Hide_cursor();
}
else
{
// discard hotkey used to activate the button
Get_input(0);
}
while ((input_key!=KEY_RETURN) && (input_key!=KEY_ESC))
{