]> Dogcows Code - chaz/openbox/commitdiff
only hide the dialog if a default button exists when enter is hit
authorDana Jansens <danakj@orodu.net>
Sun, 16 Feb 2003 12:25:42 +0000 (12:25 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Feb 2003 12:25:42 +0000 (12:25 +0000)
otk/messagedialog.cc

index c11a181e7f030da85050b9dadea179fc98ea015c..b1f6c61af7abf580f11ee338b0efeb2c63ca46c5 100644 (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();
   }
This page took 0.022472 seconds and 4 git commands to generate.