From 50e6a86f7bb0d792c63ee5d3999a6b62578d01f3 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 a0f3a29378..9c22c450e0 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -937,9 +937,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 }