forked from enlightenment/efl
home and end keys now actually SELECT the first/last genlist items instead of just moving viewport to them
this does NOT handle multiselect, since imo calling select callbacks on $TEXAS items would be pretty costly; probably need to job/timer it out or something SVN revision: 68443
This commit is contained in:
parent
fbb5fbdce0
commit
215dfd7e18
|
@ -329,6 +329,7 @@ _event_hook(Evas_Object *obj,
|
||||||
{
|
{
|
||||||
it = elm_genlist_first_item_get(obj);
|
it = elm_genlist_first_item_get(obj);
|
||||||
elm_genlist_item_bring_in(it);
|
elm_genlist_item_bring_in(it);
|
||||||
|
elm_genlist_item_selected_set(it, EINA_TRUE);
|
||||||
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
@ -336,6 +337,7 @@ _event_hook(Evas_Object *obj,
|
||||||
{
|
{
|
||||||
it = elm_genlist_last_item_get(obj);
|
it = elm_genlist_last_item_get(obj);
|
||||||
elm_genlist_item_bring_in(it);
|
elm_genlist_item_bring_in(it);
|
||||||
|
elm_genlist_item_selected_set(it, EINA_TRUE);
|
||||||
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue