Skip to content

Commit

Permalink
Update edittext.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Sedictious committed Aug 10, 2018
1 parent 1e1b4d9 commit 374ca69
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions gui/widgets/edittext.cpp
Expand Up @@ -64,7 +64,6 @@ void EditTextWidget::reflowLayout() {
EditableWidget::reflowLayout();
}


void EditTextWidget::handleMouseDown(int x, int y, int button, int clickCount) {
if (!isEnabled())
return;
Expand Down Expand Up @@ -132,14 +131,20 @@ void EditTextWidget::startEditMode() {

void EditTextWidget::endEditMode() {
releaseFocus();


sendCommand(_ExitTxtCmd, 0);
sendCommand(_finishCmd, 0);
}

void EditTextWidget::abortEditMode() {
setEditString(_backupString);
sendCommand(_cmd, 0);

releaseFocus();
}

Common::String EditTextWidget::getEditString(){
return _backupString;
}

} // End of namespace GUI

0 comments on commit 374ca69

Please sign in to comment.