all repos — openbox @ 99ec7f6f7bc8a09a091de0d1ef81370bcd13887a

openbox fork - make it a bit more like ryudo

Fix regression: hitting a key accel in a menu didn't move focus to the submenu
Dana Jansens danakj@orodu.net
commit

99ec7f6f7bc8a09a091de0d1ef81370bcd13887a

parent

2e82715a4a53fbab6d359c76aa58581c4087ddaf

1 files changed, 9 insertions(+), 2 deletions(-)

jump to
M openbox/event.copenbox/event.c

@@ -1945,8 +1945,15 @@

if (found) { menu_frame_select(frame, found, TRUE); - if (num_found == 1) - frame->press_doexec = TRUE; + if (num_found == 1) { + if (found->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) { + /* move focus to the child menu */ + menu_frame_select_next(frame->child); + } + else { + frame->press_doexec = TRUE; + } + } ret = TRUE; } }