Browse Source

Always call TextEditor::checkFocus() when focus is gained to ensure that the software keyboard is shown on Android when a TextEditor has content

tags/2021-05-28
ed 6 years ago
parent
commit
b88d5adab7
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      modules/juce_gui_basics/widgets/juce_TextEditor.cpp

+ 1
- 5
modules/juce_gui_basics/widgets/juce_TextEditor.cpp View File

@@ -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();


Loading…
Cancel
Save