From fa20f03de653049d65270110e8fdbe225a29b44d Mon Sep 17 00:00:00 2001 From: Chris Cowan Date: Mon, 13 Mar 2023 02:33:35 -0700 Subject: [PATCH] Prevent SDL_StartTextInput during con_forcedup Fixes onscreen keyboard showing up suddenly on Steam Deck when starting a map. --- Quake/keys.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Quake/keys.c b/Quake/keys.c index e57747a5..aad581b7 100644 --- a/Quake/keys.c +++ b/Quake/keys.c @@ -1144,9 +1144,10 @@ qboolean Key_TextEntry (void) case key_menu: return M_TextEntry(); case key_game: - if (!con_forcedup) - return false; - /* fallthrough */ + // Don't return true even during con_forcedup, because that happens while starting a + // game and we don't to trigger text input (and the onscreen keyboard on some devices) + // during this. + return false; case key_console: return true; default: