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:
parent
c492da9971
commit
56252ca098
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue