From: Holger Schemel Date: Thu, 7 Jan 2021 23:01:08 +0000 (+0100) Subject: fixed bug with screen keyboard still being active during request dialogs X-Git-Tag: 4.2.2.1~9 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=055f4e73fec400660f72d49bb1d4191cc98344de fixed bug with screen keyboard still being active during request dialogs --- diff --git a/src/screens.c b/src/screens.c index 95f05bf1..d7e5016a 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4260,12 +4260,16 @@ static void HandleTypeNameExt(boolean initialize, Key key) } else if (key == KSYM_Return) { + StopTextInput(); + setTypeNameValues(name, pos, TRUE); active = FALSE; } else if (key == KSYM_Escape) { + StopTextInput(); + setTypeNameValues(name, pos, FALSE); active = FALSE; @@ -4275,8 +4279,6 @@ static void HandleTypeNameExt(boolean initialize, Key key) if (!active) { - StopTextInput(); - SetGameStatus(game_status_last_screen); if (game_status == GAME_MODE_MAIN)