|
@@ -212,8 +212,7 @@ void GuiTextEditCtrl::execConsoleCallback()
|
|
Parent::execConsoleCallback();
|
|
Parent::execConsoleCallback();
|
|
|
|
|
|
// Update the console variable:
|
|
// Update the console variable:
|
|
- if ( mConsoleVariable[0] )
|
|
|
|
- Con::setVariable( mConsoleVariable, mTextBuffer.getPtr8() );
|
|
|
|
|
|
+ setVariable(mTextBuffer.getPtr8());
|
|
}
|
|
}
|
|
|
|
|
|
void GuiTextEditCtrl::updateHistory( StringBuffer *inTxt, bool moveIndex )
|
|
void GuiTextEditCtrl::updateHistory( StringBuffer *inTxt, bool moveIndex )
|
|
@@ -374,6 +373,8 @@ S32 GuiTextEditCtrl::calculateCursorPos( const Point2I &globalPos )
|
|
|
|
|
|
void GuiTextEditCtrl::onMouseDown( const GuiEvent &event )
|
|
void GuiTextEditCtrl::onMouseDown( const GuiEvent &event )
|
|
{
|
|
{
|
|
|
|
+ if(!isActive())
|
|
|
|
+ return;
|
|
mDragHit = false;
|
|
mDragHit = false;
|
|
|
|
|
|
// If we have a double click, select all text. Otherwise
|
|
// If we have a double click, select all text. Otherwise
|