Use submenuShowDelay when navigating menus with the keyboard
Dana Jansens danakj@orodu.net
2 files changed,
7 insertions(+),
3 deletions(-)
M
openbox/event.c
→
openbox/event.c
@@ -1712,7 +1712,11 @@ }
else if (ob_keycode_match(keycode, OB_KEY_RIGHT)) { /* Right goes to the selected submenu */ - if (frame->child) menu_frame_select_next(frame->child); + if (frame->selected->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) { + /* make sure it is visible */ + menu_frame_select(frame, frame->selected, TRUE); + menu_frame_select_next(frame->child); + } ret = TRUE; }