fix keyboard navigation of menus where the first item of a submenu is disabled

SVN revision: 72599
This commit is contained in:
Mike Blumenkrantz 2012-06-21 12:09:08 +00:00
parent 939fc8a35e
commit cfe425367a
1 changed files with 8 additions and 3 deletions

View File

@ -2252,9 +2252,14 @@ _e_menu_activate_next(void)
{
if (mi->submenu->items)
{
mi = eina_list_data_get(mi->submenu->items);
e_menu_item_active_set(mi, 1);
_e_menu_item_ensure_onscreen(mi);
Eina_List *l;
EINA_LIST_FOREACH(mi->submenu->items, l, mi)
if (!mi->disable)
{
e_menu_item_active_set(mi, 1);
_e_menu_item_ensure_onscreen(mi);
break;
}
}
}
return;