Prevent SDL_StartTextInput during con_forcedup

Fixes onscreen keyboard showing up suddenly on Steam Deck when starting a
map.
This commit is contained in:
Chris Cowan 2023-03-13 02:33:35 -07:00
parent cb487743e3
commit fa20f03de6

View file

@ -1144,9 +1144,10 @@ qboolean Key_TextEntry (void)
case key_menu: case key_menu:
return M_TextEntry(); return M_TextEntry();
case key_game: case key_game:
if (!con_forcedup) // 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; return false;
/* fallthrough */
case key_console: case key_console:
return true; return true;
default: default: