projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d5156d
)
let you use control button to run keyboard accels in menus
author
Dana Jansens
<danakj@orodu.net>
Fri, 25 May 2007 19:01:57 +0000
(19:01 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 25 May 2007 19:01:57 +0000
(19:01 +0000)
openbox/event.c
patch
|
blob
|
history
diff --git
a/openbox/event.c
b/openbox/event.c
index
6e11f82
..
231b09e
100644
(file)
--- 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. */