1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

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

This commit is contained in:
ed 2019-03-19 17:48:52 +00:00
parent 291d654ece
commit 9715e77e0f

View file

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