projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c71738f
)
only hide the dialog if a default button exists when enter is hit
author
Dana Jansens
<danakj@orodu.net>
Sun, 16 Feb 2003 12:25:42 +0000
(12:25 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 16 Feb 2003 12:25:42 +0000
(12:25 +0000)
otk/messagedialog.cc
patch
|
blob
|
history
diff --git
a/otk/messagedialog.cc
b/otk/messagedialog.cc
index c11a181e7f030da85050b9dadea179fc98ea015c..b1f6c61af7abf580f11ee338b0efeb2c63ca46c5 100644
(file)
--- 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();
}