From: Dana Jansens Date: Sun, 16 Feb 2003 12:25:42 +0000 (+0000) Subject: only hide the dialog if a default button exists when enter is hit X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=213df2814b002da2c5f324210d44559f9d651e21;p=chaz%2Fopenbox only hide the dialog if a default button exists when enter is hit --- diff --git a/otk/messagedialog.cc b/otk/messagedialog.cc index c11a181e..b1f6c61a 100644 --- a/otk/messagedialog.cc +++ b/otk/messagedialog.cc @@ -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(); }