From a806a332ce037107c2f6f2f4314c606c3cb565bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nic=20Soud=C3=A9e?= Date: Fri, 21 Jan 2022 14:59:14 -0500 Subject: [PATCH] Discard hotkey keystroke for text buttons --- src/readline.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/readline.c b/src/readline.c index 4a60ad84..8d67fac8 100644 --- a/src/readline.c +++ b/src/readline.c @@ -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)) {