only hide the dialog if a default button exists when enter is hit
This commit is contained in:
parent
c71738f3f4
commit
213df2814b
1 changed files with 1 additions and 1 deletions
|
@ -168,9 +168,9 @@ void MessageDialog::keyPressHandler(const XKeyEvent &e)
|
|||
for (it = _buttons.begin(); it != end; ++it)
|
||||
if (it->isDefault()) {
|
||||
_result = &(*it);
|
||||
hide();
|
||||
break;
|
||||
}
|
||||
hide();
|
||||
} else if (e.keycode == _escape) {
|
||||
hide();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue