From f35b659ce980083ddbde6fee13ed208478859f80 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sun, 9 Jun 2019 20:06:03 +0200 Subject: [PATCH] fix double keystokes with SDL2 tested with both keyboard input and Virtual Keyboard see http://pulkomandy.tk/projects/GrafX2/ticket/135 --- src/readline.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/readline.c b/src/readline.c index b20f0d69..775f3459 100644 --- a/src/readline.c +++ b/src/readline.c @@ -1152,7 +1152,13 @@ byte Readline_ex_unicode(word x_pos, word y_pos, char * str, word * str_unicode, } break; default : + // SDL2 keystrokes are reported through both Key_Text and + // Key_ANSI / Key_UNICODE +#if defined(USE_SDL2) + if (use_virtual_keyboard && size