forked from enlightenment/efl
Genlist: On focus_on_selection mode, the focus should set on item content objects of item type ELM_GENLIST_ITEM_TREE.
Summary: On focus_on_selection set, the focus set on genlist item of type ELM_GENLIST_ITEM_TREE rather than on item content objects. Test Plan: elementary_test -to "genlist focus" Reviewers: seoz, eagleeye, SanghyeonLee, raster Reviewed By: raster CC: seoz Differential Revision: https://phab.enlightenment.org/D899
This commit is contained in:
parent
cd603fa02b
commit
184c394259
|
@ -1738,6 +1738,17 @@ _item_realize(Elm_Gen_Item *it,
|
|||
|
||||
}
|
||||
|
||||
if (it->item->type == ELM_GENLIST_ITEM_TREE)
|
||||
{
|
||||
Evas_Object* t_eobj;
|
||||
Eina_List* tl;
|
||||
EINA_LIST_FOREACH(it->content_objs, tl, t_eobj)
|
||||
if (elm_widget_is(t_eobj) && elm_object_focus_allow_get(t_eobj))
|
||||
it->item_focus_chain = eina_list_append
|
||||
(it->item_focus_chain, t_eobj);
|
||||
|
||||
}
|
||||
|
||||
evas_object_smart_callback_call(WIDGET(it), SIG_REALIZED, it);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue