let you use control button to run keyboard accels in menus
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
openbox/event.c
→
openbox/event.c
@@ -1588,8 +1588,8 @@ else if (keycode == ob_keycode(OB_KEY_DOWN) && state == 0) {
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. */