genlist needs to also highlight items on keyboard select

this should probably just happen in _item_select() to avoid future incidents

ref T1986
This commit is contained in:
Mike Blumenkrantz 2015-01-14 15:19:48 -05:00
parent a102155889
commit 8414d626d4
1 changed files with 7 additions and 0 deletions

View File

@ -157,6 +157,7 @@ static void _access_activate_cb(void *data EINA_UNUSED,
Elm_Object_Item *item);
static void _decorate_item_set(Elm_Gen_Item *);
static void _internal_elm_genlist_clear(Evas_Object *obj);
static void _item_highlight(Elm_Gen_Item *it);
static const Elm_Action key_actions[] = {
{"move", _key_action_move},
@ -2395,6 +2396,8 @@ _item_multi_select_up(Elm_Genlist_Data *sd)
else
{
elm_genlist_item_selected_set(eo_prev, EINA_TRUE);
ELM_GENLIST_ITEM_DATA_GET(eo_prev, prev);
_item_highlight(prev);
}
return EINA_TRUE;
}
@ -2425,6 +2428,8 @@ _item_multi_select_down(Elm_Genlist_Data *sd)
else
{
elm_genlist_item_selected_set(eo_next, EINA_TRUE);
ELM_GENLIST_ITEM_DATA_GET(eo_next, next);
_item_highlight(next);
}
return EINA_TRUE;
@ -2474,6 +2479,7 @@ _item_single_select_up(Elm_Genlist_Data *sd)
_all_items_deselect(sd);
elm_genlist_item_selected_set(EO_OBJ(prev), EINA_TRUE);
_item_highlight(prev);
return EINA_TRUE;
}
@ -2504,6 +2510,7 @@ _item_single_select_down(Elm_Genlist_Data *sd)
_all_items_deselect(sd);
elm_genlist_item_selected_set(EO_OBJ(next), EINA_TRUE);
_item_highlight(next);
return EINA_TRUE;
}