diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-22 20:33:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-22 20:33:33 +0300 |
commit | 0dbe22fd77994c05fcd587363b726c22c40b1917 (patch) | |
tree | b26f3904e1a07d2f5769cac4260adf75387f75e8 /src/actionmanager.cpp | |
parent | ce1b6c9c3c0166853089a247add9c2baa016c5f0 (diff) | |
download | mv-0dbe22fd77994c05fcd587363b726c22c40b1917.tar.gz mv-0dbe22fd77994c05fcd587363b726c22c40b1917.tar.bz2 mv-0dbe22fd77994c05fcd587363b726c22c40b1917.tar.xz mv-0dbe22fd77994c05fcd587363b726c22c40b1917.zip |
add support for show/hide keyboard in SDL2 on Android.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r-- | src/actionmanager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp index 3bbc30ffc..eb2501b53 100644 --- a/src/actionmanager.cpp +++ b/src/actionmanager.cpp @@ -1111,7 +1111,10 @@ impHandler0(showKeyboard) { #ifdef ANDROID #ifdef USE_SDL2 -// +++ need add support + if (SDL_IsTextInputActive()) + SDL_StopTextInput(); + else + SDL_StartTextInput(); #else SDL_ANDROID_ToggleScreenKeyboardTextInput(nullptr); #endif |