From: Dana Jansens Date: Fri, 25 May 2007 19:01:57 +0000 (+0000) Subject: let you use control button to run keyboard accels in menus X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=e10c54137a967a9257ebbcd1b930178579cc1d64;p=chaz%2Fopenbox let you use control button to run keyboard accels in menus --- diff --git a/openbox/event.c b/openbox/event.c index 6e11f82e..231b09e6 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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. */