Browse Source

Only call ComponentPeer::textInputRequired() from TextEditor::checkFocus() if the focus status has changed to fix the soft input keyboard constantly re-opening on Android

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

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

@@ -1251,7 +1251,7 @@ void TextEditor::timerCallbackInt()
void TextEditor::checkFocus()
{
if (hasKeyboardFocus (false) && ! isCurrentlyBlockedByAnotherModalComponent())
if (! wasFocused && hasKeyboardFocus (false) && ! isCurrentlyBlockedByAnotherModalComponent())
{
wasFocused = true;


Loading…
Cancel
Save