From e10c54137a967a9257ebbcd1b930178579cc1d64 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 25 May 2007 19:01:57 +0000 Subject: [PATCH] let you use control button to run keyboard accels in menus --- openbox/event.c | 4 ++-- 1 file 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. */