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

Fixed a bug in TextEditor::setSelectAllWhenFocused()

This commit is contained in:
ed 2020-10-09 14:24:03 +01:00
parent c492da9971
commit 56252ca098

View file

@ -2135,7 +2135,7 @@ bool TextEditor::keyStateChanged (const bool isKeyDown)
}
//==============================================================================
void TextEditor::focusGained (FocusChangeType)
void TextEditor::focusGained (FocusChangeType cause)
{
newTransaction();
@ -2147,6 +2147,9 @@ void TextEditor::focusGained (FocusChangeType)
checkFocus();
if (cause == FocusChangeType::focusChangedByMouseClick && selectAllTextWhenFocused)
wasFocused = false;
repaint();
updateCaretPosition();
}