Permalink
Browse files

Update edittext.cpp

  • Loading branch information...
Sedictious committed Aug 10, 2018
1 parent 1e1b4d9 commit 374ca69815a57e31c953ba5d34132f6b5dce4b56
Showing with 7 additions and 2 deletions.
  1. +7 −2 gui/widgets/edittext.cpp
@@ -64,7 +64,6 @@ void EditTextWidget::reflowLayout() {
EditableWidget::reflowLayout();
}


void EditTextWidget::handleMouseDown(int x, int y, int button, int clickCount) {
if (!isEnabled())
return;
@@ -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.