From 0545563b190291d2c24231ab379098b668ee8d63 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 21 Jul 2007 09:48:10 -0400 Subject: [PATCH] be explicit about the event --- openbox/event.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbox/event.c b/openbox/event.c index fd12c25f..c6bf6dfe 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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. */ -- 2.44.0