소스 검색

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