be explicit about the event

This commit is contained in:
Dana Jansens 2007-07-21 09:48:10 -04:00
parent 9713a629d7
commit 0545563b19

View file

@ -1663,7 +1663,9 @@ static gboolean event_handle_menu_keyboard(XEvent *ev)
get sent to the focused application. get sent to the focused application.
Allow ControlMask only, and don't bother if the menu is empty */ 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)) { if (keycode == ob_keycode(OB_KEY_RETURN)) {
/* Enter runs the active item or goes into the submenu. /* Enter runs the active item or goes into the submenu.
Control-Enter runs it without closing the menu. */ Control-Enter runs it without closing the menu. */