forked from enlightenment/efl
Revert "genlist now uses uniform item showing behavior when selecting items with keyboard"
This reverts commit 85332555e8d3e5b981cde10ba9a1675ef6a4936e. I will fix this in another way.
This commit is contained in:
parent
53e1698ab8
commit
699b01bcb2
|
@ -2405,7 +2405,6 @@ _item_single_select_up(Elm_Genlist_Smart_Data *sd)
|
|||
_all_items_deselect(sd);
|
||||
|
||||
elm_genlist_item_selected_set((Elm_Object_Item *)prev, EINA_TRUE);
|
||||
elm_genlist_item_show((Elm_Object_Item*)prev, ELM_GENLIST_ITEM_SCROLLTO_IN);
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
@ -2429,7 +2428,6 @@ _item_single_select_down(Elm_Genlist_Smart_Data *sd)
|
|||
_all_items_deselect(sd);
|
||||
|
||||
elm_genlist_item_selected_set((Elm_Object_Item *)next, EINA_TRUE);
|
||||
elm_genlist_item_show((Elm_Object_Item*)next, ELM_GENLIST_ITEM_SCROLLTO_IN);
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
@ -2700,8 +2698,8 @@ _elm_genlist_smart_event(Eo *obj, void *_pd, va_list *list)
|
|||
((!strcmp(ev->key, "KP_Home")) && (!ev->string)))
|
||||
{
|
||||
it = elm_genlist_first_item_get(obj);
|
||||
elm_genlist_item_bring_in(it, ELM_GENLIST_ITEM_SCROLLTO_IN);
|
||||
elm_genlist_item_selected_set(it, EINA_TRUE);
|
||||
elm_genlist_item_show(it, ELM_GENLIST_ITEM_SCROLLTO_IN);
|
||||
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
||||
if (ret) *ret = EINA_TRUE;
|
||||
return;
|
||||
|
@ -2710,8 +2708,8 @@ _elm_genlist_smart_event(Eo *obj, void *_pd, va_list *list)
|
|||
((!strcmp(ev->key, "KP_End")) && (!ev->string)))
|
||||
{
|
||||
it = elm_genlist_last_item_get(obj);
|
||||
elm_genlist_item_bring_in(it, ELM_GENLIST_ITEM_SCROLLTO_IN);
|
||||
elm_genlist_item_selected_set(it, EINA_TRUE);
|
||||
elm_genlist_item_show(it, ELM_GENLIST_ITEM_SCROLLTO_IN);
|
||||
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
||||
if (ret) *ret = EINA_TRUE;
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue