make escape close the whole menu
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
7 deletions(-)
jump to
M
openbox/event.c
→
openbox/event.c
@@ -1584,13 +1584,8 @@ frame = find_active_or_last_menu();
if (frame == NULL) ret = FALSE; - else if (keycode == ob_keycode(OB_KEY_ESCAPE) && state == 0) { - /* Escape goes to the parent menu or closes the last one */ - if (frame->parent) - menu_frame_select(frame, NULL, TRUE); - else - menu_frame_hide_all(); - } + else if (keycode == ob_keycode(OB_KEY_ESCAPE) && state == 0) + menu_frame_hide_all(); else if (keycode == ob_keycode(OB_KEY_RETURN) && (state == 0 || state == ControlMask))