From: Holger Schemel Date: Sat, 29 Sep 2018 09:17:10 +0000 (+0200) Subject: added ignoring screen navigation events if text input gadgets are active X-Git-Tag: 4.1.1.0~21 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=06d8cf152effee74879d58cd6f05b6b6a7a982d1;p=rocksndiamonds.git added ignoring screen navigation events if text input gadgets are active --- diff --git a/src/events.c b/src/events.c index 417d149b..9f18adbe 100644 --- a/src/events.c +++ b/src/events.c @@ -2113,6 +2113,10 @@ void HandleKey(Key key, int key_status) case GAME_MODE_SETUP: case GAME_MODE_INFO: case GAME_MODE_SCORES: + + if (anyTextGadgetActiveOrJustFinished && key != KSYM_Escape) + break; + switch (key) { case KSYM_space: @@ -2393,6 +2397,9 @@ void HandleJoystick(void) case GAME_MODE_INFO: case GAME_MODE_SCORES: { + if (anyTextGadgetActive()) + break; + if (game_status == GAME_MODE_TITLE) HandleTitleScreen(0,0,dx,dy, newbutton ? MB_MENU_CHOICE : MB_MENU_MARK); else if (game_status == GAME_MODE_MAIN)