From 4959216718d36c141bca49ffb5527145ebd17573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustaf=20Alh=C3=A4ll?= <gustaf@hanicef.me> Date: Sat, 5 Oct 2024 13:50:10 +0200 Subject: [PATCH] Prevent console opening if text input is enabled --- src/console.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/console.c b/src/console.c index 50ecfec9c2..2eb5b26c3a 100644 --- a/src/console.c +++ b/src/console.c @@ -954,6 +954,9 @@ boolean CON_Responder(event_t *ev) if ((key == gamecontrol[GC_CONSOLE][0] || key == gamecontrol[GC_CONSOLE][1]) && !shiftdown) { + if (con_destlines == 0 && I_GetTextInputMode()) + return false; // some other component is holding keyboard input, don't hijack it! + I_SetTextInputMode(con_destlines == 0); // inverse, since this is changed next tic. consoletoggle = true; return true; -- GitLab