use keyrelease to fire menu actions not key press

when keypress is used, the keyrelease gets sent to whatever window is focused.  if it's a stupid program - like most any program - it will update its user_time, preventing the new window from being focused
This commit is contained in:
Dana Jansens 2007-07-19 14:24:30 -04:00
parent ee8d27a6e8
commit e4f055b0c1

View file

@ -1778,7 +1778,7 @@ static gboolean event_handle_menu(XEvent *ev)
f->child == e->frame) f->child == e->frame)
menu_frame_select(e->frame, e, FALSE); menu_frame_select(e->frame, e, FALSE);
break; break;
case KeyPress: case KeyRelease:
ret = event_handle_menu_keyboard(ev); ret = event_handle_menu_keyboard(ev);
break; break;
} }