let you use control button to run keyboard accels in menus

This commit is contained in:
Dana Jansens 2007-05-25 19:01:57 +00:00
parent 5d5156dcb3
commit e10c54137a

View file

@ -1588,8 +1588,8 @@ static gboolean event_handle_menu_keyboard(XEvent *ev)
menu_frame_select_next(frame);
}
/* keyboard accelerator shortcuts. */
else if (ev->xkey.state == 0 &&
/* keyboard accelerator shortcuts. (allow controlmask) */
else if ((ev->xkey.state & ~ControlMask) == 0 &&
/* was it a valid key? */
unikey != 0 &&
/* don't bother if the menu is empty. */