From 2660e33dd29b22db3c5696d782922f983eed9b30 Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Wed, 29 Apr 2015 21:40:05 +0300 Subject: [PATCH] Non-blocking text input. so you won't get kicked by server because of no reply to ping --- src/misc_gui.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 6c4aeb7cf5..18ac435067 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -938,9 +938,12 @@ void QueryString::ClickEditBox(Window *w, Point pt, int wid, int click_count, bo char text[512]; strecpy(text, this->text.buf, lastof(text)); this->text.DeleteAll(); - SDL_ANDROID_GetScreenKeyboardTextInput(text, sizeof(text) - 1); /* Invoke Android built-in screen keyboard */ + SDL_ANDROID_ToggleScreenKeyboardTextInput(text); // Invoke Android built-in screen keyboard, this will not block + /* + SDL_ANDROID_GetScreenKeyboardTextInput(text, sizeof(text) - 1); // Invoke Android built-in screen keyboard, this will block this->text.Assign(text); w->OnEditboxChanged(wid); + */ #endif }