summaryrefslogtreecommitdiff
path: root/otk
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-16 12:25:42 +0000
committerDana Jansens <danakj@orodu.net>2003-02-16 12:25:42 +0000
commit213df2814b002da2c5f324210d44559f9d651e21 (patch)
tree8ee0a365e164088bf5b97c03f2860dfc4fa52c15 /otk
parentc71738f3f47535492eadcf0e463282b681d2271f (diff)
only hide the dialog if a default button exists when enter is hit
Diffstat (limited to 'otk')
-rw-r--r--otk/messagedialog.cc2
1 files changed, 1 insertions, 1 deletions
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();
}