diff --git a/android/main.cpp b/android/main.cpp index 55de23e23..bf54f3150 100644 --- a/android/main.cpp +++ b/android/main.cpp @@ -147,6 +147,8 @@ void tick() static bool WantTextInputLast = false; if (io.WantTextInput && !WantTextInputLast) ShowSoftKeyboardInput(); + if (!io.WantTextInput && WantTextInputLast) + HideSoftKeyboardInput(); WantTextInputLast = io.WantTextInput; // Start the Dear ImGui frame