only hide the dialog if a default button exists when enter is hit

This commit is contained in:
Dana Jansens 2003-02-16 12:25:42 +00:00
parent c71738f3f4
commit 213df2814b

View file

@ -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();
}