mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
Prevent SDL_StartTextInput during con_forcedup
Fixes onscreen keyboard showing up suddenly on Steam Deck when starting a map.
This commit is contained in:
parent
cb487743e3
commit
fa20f03de6
1 changed files with 4 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue