diff --git a/project/jni/guichan/src/widgets/textfield.cpp b/project/jni/guichan/src/widgets/textfield.cpp index 55dfd15ad..a985b1fd0 100755 --- a/project/jni/guichan/src/widgets/textfield.cpp +++ b/project/jni/guichan/src/widgets/textfield.cpp @@ -154,7 +154,7 @@ namespace gcn void TextField::mousePressed(MouseEvent& mouseEvent) { #ifdef ANDROID - if (showAndroidKeyboard) + if (showAndroidKeyboard && !SDL_IsScreenKeyboardShown(NULL)) SDL_ANDROID_ToggleScreenKeyboardTextInput(getText().c_str()); #endif if (mouseEvent.getButton() == MouseEvent::LEFT)