From: Holger Schemel Date: Thu, 7 Jan 2021 23:55:40 +0000 (+0100) Subject: fixed bug with disabling overlay buttons during screen keyboard on Android X-Git-Tag: 4.2.2.1~7 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=8ab1a8040e3d3615ac2f6656f38fef8a809364a8;p=rocksndiamonds.git fixed bug with disabling overlay buttons during screen keyboard on Android When using the screen keyboard on Android systems with touch input, keys on the screen keyboard like the "Return" key are handled as key events, not text events, This causes the event handler to think that a real keyboard is used instead of touch input, causing overlay touch buttons to be disabled, even if the screen keyboard is immediately followed by a request dialog, where overlay buttons should be used. --- diff --git a/src/events.c b/src/events.c index 2bc1aff0..e07b8494 100644 --- a/src/events.c +++ b/src/events.c @@ -1476,7 +1476,7 @@ void HandleKeyEvent(KeyEvent *event) if (key_status == KEY_PRESSED) SetOverlayEnabled(!GetOverlayEnabled()); } - else + else if (!textinput_status) { // for any other "real" key event, disable virtual buttons SetOverlayEnabled(FALSE);