]> Dogcows Code - chaz/openbox/blobdiff - openbox/event.c
be explicit about the event
[chaz/openbox] / openbox / event.c
index fd12c25fe61bf5fe45db0ed55732d86fbfa64bef..c6bf6dfe1d55e40a89152373f63c49c0ee2266f3 100644 (file)
@@ -1663,7 +1663,9 @@ static gboolean event_handle_menu_keyboard(XEvent *ev)
        get sent to the focused application.
 
        Allow ControlMask only, and don't bother if the menu is empty */
-    else if ((state & ~ControlMask) == 0 && frame->entries) {
+    else if (ev->type == KeyRelease && (state & ~ControlMask) == 0 &&
+             frame->entries)
+    {
         if (keycode == ob_keycode(OB_KEY_RETURN)) {
             /* Enter runs the active item or goes into the submenu.
                Control-Enter runs it without closing the menu. */
This page took 0.025509 seconds and 4 git commands to generate.