mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-30 05:17:23 +02:00
Show the on-screen keyboard if we don't have active keyboard input
Active keyboard input is based on the input the user has most recently sent. Fixes https://github.com/libsdl-org/SDL/issues/12595
This commit is contained in:
@@ -5416,7 +5416,7 @@ bool SDL_GetTextInputMultiline(SDL_PropertiesID props)
|
||||
static bool AutoShowingScreenKeyboard(void)
|
||||
{
|
||||
const char *hint = SDL_GetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD);
|
||||
if (((!hint || SDL_strcasecmp(hint, "auto") == 0) && !SDL_HasKeyboard()) ||
|
||||
if (((!hint || SDL_strcasecmp(hint, "auto") == 0) && !SDL_HasActiveKeyboard()) ||
|
||||
SDL_GetStringBoolean(hint, false)) {
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user