Merge pull request #2321 from Areloch/textApplyFocus

Updates TextEdit value when focus is lost.
This commit is contained in:
Areloch 2019-03-30 16:07:18 -05:00 committed by GitHub
commit 9a760c721e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1241,6 +1241,9 @@ void GuiTextEditCtrl::onLoseFirstResponder()
root->disableKeyboardTranslation();
}
updateHistory(&mTextBuffer, true);
mHistoryDirty = false;
//execute the validate command
if( mValidateCommand.isNotEmpty() )
evaluate( mValidateCommand );