From: Dana Jansens Date: Tue, 9 Nov 2010 01:20:36 +0000 (-0500) Subject: Fix regression: hitting a key accel in a menu didn't move focus to the submenu X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;ds=sidebyside;h=99ec7f6f7bc8a09a091de0d1ef81370bcd13887a;p=chaz%2Fopenbox Fix regression: hitting a key accel in a menu didn't move focus to the submenu --- diff --git a/openbox/event.c b/openbox/event.c index ba39ef9f..2dde1329 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1945,8 +1945,15 @@ static gboolean event_handle_menu_input(XEvent *ev) 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; } }