Browse Source

Merge pull request #2321 from Areloch/textApplyFocus

Updates TextEdit value when focus is lost.
Areloch 6 years ago
parent
commit
a9707f09c3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Engine/source/gui/controls/guiTextEditCtrl.cpp

+ 3 - 0
Engine/source/gui/controls/guiTextEditCtrl.cpp

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