From 8ab1a8040e3d3615ac2f6656f38fef8a809364a8 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 8 Jan 2021 00:55:40 +0100 Subject: [PATCH] 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. --- src/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1