2
0
Эх сурвалжийг харах

Merge pull request #2321 from Areloch/textApplyFocus

Updates TextEdit value when focus is lost.
Areloch 6 жил өмнө
parent
commit
a9707f09c3

+ 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 );