From 9715e77e0fd62ef4e284f75856bf5e502afdc149 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 19 Mar 2019 17:48:52 +0000 Subject: [PATCH] Only call ComponentPeer::textInputRequired() from TextEditor::checkFocus() if the focus status has changed to fix the soft input keyboard constantly re-opening on Android --- modules/juce_gui_basics/widgets/juce_TextEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/widgets/juce_TextEditor.cpp b/modules/juce_gui_basics/widgets/juce_TextEditor.cpp index 10ae35fd3d..80c3bee14d 100644 --- a/modules/juce_gui_basics/widgets/juce_TextEditor.cpp +++ b/modules/juce_gui_basics/widgets/juce_TextEditor.cpp @@ -1251,7 +1251,7 @@ void TextEditor::timerCallbackInt() void TextEditor::checkFocus() { - if (hasKeyboardFocus (false) && ! isCurrentlyBlockedByAnotherModalComponent()) + if (! wasFocused && hasKeyboardFocus (false) && ! isCurrentlyBlockedByAnotherModalComponent()) { wasFocused = true;