summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-25 19:01:57 +0000
committerDana Jansens <danakj@orodu.net>2007-05-25 19:01:57 +0000
commite10c54137a967a9257ebbcd1b930178579cc1d64 (patch)
tree0b33b71f09fb0a73e170ba714ee7c848a743710d /openbox
parent5d5156dcb3a18a271880b16f951d83bfda0fed03 (diff)
let you use control button to run keyboard accels in menus
Diffstat (limited to 'openbox')
-rw-r--r--openbox/event.c4
1 files changed, 2 insertions, 2 deletions
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. */