]> Dogcows Code - chaz/openbox/commitdiff
let you use control button to run keyboard accels in menus
authorDana Jansens <danakj@orodu.net>
Fri, 25 May 2007 19:01:57 +0000 (19:01 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 25 May 2007 19:01:57 +0000 (19:01 +0000)
openbox/event.c

index 6e11f82eac819dcf8fff9addb8c10e8f27c723fd..231b09e663a8cfc010e1a8b27fcc0d99b80cf49e 100644 (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. */
This page took 0.028432 seconds and 4 git commands to generate.