Use submenuShowDelay when navigating menus with the keyboard

This commit is contained in:
Dana Jansens 2010-01-08 09:00:00 -05:00
parent f163c46eaf
commit 70c074afe8
2 changed files with 7 additions and 3 deletions

View file

@ -1712,7 +1712,11 @@ static gboolean event_handle_menu_keyboard(XEvent *ev)
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;
}

View file

@ -1289,7 +1289,7 @@ void menu_frame_select_previous(ObMenuFrame *self)
}
}
}
menu_frame_select(self, it ? it->data : NULL, TRUE);
menu_frame_select(self, it ? it->data : NULL, FALSE);
}
void menu_frame_select_next(ObMenuFrame *self)
@ -1314,5 +1314,5 @@ void menu_frame_select_next(ObMenuFrame *self)
}
}
}
menu_frame_select(self, it ? it->data : NULL, TRUE);
menu_frame_select(self, it ? it->data : NULL, FALSE);
}