summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-01-14 15:19:48 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-01-14 15:19:48 -0500
commite5b56cfb392b153e0bc3354f468c0a0af5218818 (patch)
tree98713047c16ef862cf0cfe90dccac7c19814ab91
parent99581d48343247b25ec435687109e2516dfb5b29 (diff)
genlist needs to also highlight items on keyboard select
this should probably just happen in _item_select() to avoid future incidents ref T1986
-rw-r--r--src/lib/elm_genlist.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index a4ebbf89b..64fc0d78c 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -157,6 +157,7 @@ static void _access_activate_cb(void *data EINA_UNUSED,
157 Elm_Object_Item *item); 157 Elm_Object_Item *item);
158static void _decorate_item_set(Elm_Gen_Item *); 158static void _decorate_item_set(Elm_Gen_Item *);
159static void _internal_elm_genlist_clear(Evas_Object *obj); 159static void _internal_elm_genlist_clear(Evas_Object *obj);
160static void _item_highlight(Elm_Gen_Item *it);
160 161
161static const Elm_Action key_actions[] = { 162static const Elm_Action key_actions[] = {
162 {"move", _key_action_move}, 163 {"move", _key_action_move},
@@ -2395,6 +2396,8 @@ _item_multi_select_up(Elm_Genlist_Data *sd)
2395 else 2396 else
2396 { 2397 {
2397 elm_genlist_item_selected_set(eo_prev, EINA_TRUE); 2398 elm_genlist_item_selected_set(eo_prev, EINA_TRUE);
2399 ELM_GENLIST_ITEM_DATA_GET(eo_prev, prev);
2400 _item_highlight(prev);
2398 } 2401 }
2399 return EINA_TRUE; 2402 return EINA_TRUE;
2400} 2403}
@@ -2425,6 +2428,8 @@ _item_multi_select_down(Elm_Genlist_Data *sd)
2425 else 2428 else
2426 { 2429 {
2427 elm_genlist_item_selected_set(eo_next, EINA_TRUE); 2430 elm_genlist_item_selected_set(eo_next, EINA_TRUE);
2431 ELM_GENLIST_ITEM_DATA_GET(eo_next, next);
2432 _item_highlight(next);
2428 } 2433 }
2429 2434
2430 return EINA_TRUE; 2435 return EINA_TRUE;
@@ -2474,6 +2479,7 @@ _item_single_select_up(Elm_Genlist_Data *sd)
2474 _all_items_deselect(sd); 2479 _all_items_deselect(sd);
2475 2480
2476 elm_genlist_item_selected_set(EO_OBJ(prev), EINA_TRUE); 2481 elm_genlist_item_selected_set(EO_OBJ(prev), EINA_TRUE);
2482 _item_highlight(prev);
2477 return EINA_TRUE; 2483 return EINA_TRUE;
2478} 2484}
2479 2485
@@ -2504,6 +2510,7 @@ _item_single_select_down(Elm_Genlist_Data *sd)
2504 _all_items_deselect(sd); 2510 _all_items_deselect(sd);
2505 2511
2506 elm_genlist_item_selected_set(EO_OBJ(next), EINA_TRUE); 2512 elm_genlist_item_selected_set(EO_OBJ(next), EINA_TRUE);
2513 _item_highlight(next);
2507 2514
2508 return EINA_TRUE; 2515 return EINA_TRUE;
2509} 2516}