From b88d5adab70971a420a65a8771278765c2d74950 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 16 Apr 2019 10:24:55 +0100 Subject: [PATCH] Always call TextEditor::checkFocus() when focus is gained to ensure that the software keyboard is shown on Android when a TextEditor has content --- modules/juce_gui_basics/widgets/juce_TextEditor.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/juce_gui_basics/widgets/juce_TextEditor.cpp b/modules/juce_gui_basics/widgets/juce_TextEditor.cpp index 80c3bee14d..fee48f15e2 100644 --- a/modules/juce_gui_basics/widgets/juce_TextEditor.cpp +++ b/modules/juce_gui_basics/widgets/juce_TextEditor.cpp @@ -2071,11 +2071,7 @@ void TextEditor::focusGained (FocusChangeType) moveCaretTo (getTotalNumChars(), true); } - // When caret position changes, we check focus automatically, to - // show any native keyboard if needed. If the position does not - // change though, we need to check focus manually. - if (getTotalNumChars() == 0) - checkFocus(); + checkFocus(); repaint(); updateCaretPosition();