only hide the dialog if a default button exists when enter is hit
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
otk/messagedialog.cc
→
otk/messagedialog.cc
@@ -168,9 +168,9 @@ std::vector<DialogButton>::const_iterator it, end = _buttons.end();
for (it = _buttons.begin(); it != end; ++it) if (it->isDefault()) { _result = &(*it); + hide(); break; } - hide(); } else if (e.keycode == _escape) { hide(); }