MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / dealWithEnter

Method dealWithEnter

Engine/source/gui/controls/guiTextEditCtrl.cpp:1118–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116}
1117
1118bool GuiTextEditCtrl::dealWithEnter( bool clearResponder )
1119{
1120 //first validate
1121 if (mProfile->mReturnTab)
1122 {
1123 onLoseFirstResponder();
1124 }
1125
1126 updateHistory(&mTextBuffer, true);
1127 mHistoryDirty = false;
1128
1129 //next exec the alt console command
1130 execAltConsoleCallback();
1131
1132 // Notify of Return
1133 onReturn_callback();
1134
1135 if (mProfile->mReturnTab)
1136 {
1137 GuiCanvas *root = getRoot();
1138 if (root)
1139 {
1140 root->tabNext();
1141 return true;
1142 }
1143 }
1144
1145 if( clearResponder )
1146 clearFirstResponder();
1147
1148 return true;
1149}
1150
1151void GuiTextEditCtrl::setFirstResponder()
1152{

Callers

nothing calls this directly

Calls 1

tabNextMethod · 0.80

Tested by

no test coverage detected