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:
Mike Blumenkrantz 2012-02-25 11:53:35 +00:00
parent fbb5fbdce0
commit 215dfd7e18
1 changed files with 2 additions and 0 deletions

View File

@ -329,6 +329,7 @@ _event_hook(Evas_Object *obj,
{
it = elm_genlist_first_item_get(obj);
elm_genlist_item_bring_in(it);
elm_genlist_item_selected_set(it, EINA_TRUE);
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
return EINA_TRUE;
}
@ -336,6 +337,7 @@ _event_hook(Evas_Object *obj,
{
it = elm_genlist_last_item_get(obj);
elm_genlist_item_bring_in(it);
elm_genlist_item_selected_set(it, EINA_TRUE);
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
return EINA_TRUE;
}