summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/windowmanager.cpp2
-rw-r--r--src/progs/manaplus/actions/actions.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp
index ab4224f25..054f19f12 100644
--- a/src/gui/windowmanager.cpp
+++ b/src/gui/windowmanager.cpp
@@ -473,7 +473,7 @@ void WindowManager::setIcon()
bool WindowManager::isKeyboardVisible()
{
#ifdef USE_SDL2
- return SDL_IsTextInputActive();
+ return SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE;
#else // USE_SDL2
return mKeyboardHeight > 1;
diff --git a/src/progs/manaplus/actions/actions.cpp b/src/progs/manaplus/actions/actions.cpp
index b958f8f62..458332fb0 100644
--- a/src/progs/manaplus/actions/actions.cpp
+++ b/src/progs/manaplus/actions/actions.cpp
@@ -970,7 +970,7 @@ impHandler0(showKeyboard)
{
#ifdef ANDROID
#ifdef USE_SDL2
- if (SDL_IsTextInputActive())
+ if (SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE)
SDL_StopTextInput();
else
SDL_StartTextInput();