瀏覽代碼

Merge pull request #2321 from Areloch/textApplyFocus

Updates TextEdit value when focus is lost.
Areloch 6 年之前
父節點
當前提交
a9707f09c3
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 );