elm_genlist: do not not right left top down in action_move

the internal movement logic was resulting in wrong movements skipping
children items.
This commit is contained in:
Marcel Hollerbach 2018-04-24 22:18:35 +02:00
parent d7011b52e7
commit 94b7d53c3b
1 changed files with 1 additions and 30 deletions

View File

@ -3106,42 +3106,13 @@ _key_action_move(Evas_Object *obj, const char *params)
(obj, NULL, NULL, &v_w, &v_h);
_elm_widget_focus_auto_show(obj);
if (!strcmp(dir, "left"))
{
x -= step_x;
Elm_Object_Item *eo_gt = elm_genlist_selected_item_get(obj);
ELM_GENLIST_ITEM_DATA_GET(eo_gt, gt);
_elm_genlist_item_content_focus_set(gt, ELM_FOCUS_LEFT);
return EINA_FALSE;
}
else if (!strcmp(dir, "right"))
{
x += step_x;
Elm_Object_Item *eo_gt = elm_genlist_selected_item_get(obj);
ELM_GENLIST_ITEM_DATA_GET(eo_gt, gt);
_elm_genlist_item_content_focus_set(gt, ELM_FOCUS_RIGHT);
return EINA_FALSE;
}
else if (!strcmp(dir, "up"))
{
if (_key_action_move_dir(obj, ELM_FOCUS_UP, EINA_FALSE)) return EINA_TRUE;
else return EINA_FALSE;
}
else if (!strcmp(dir, "up_multi"))
if (!strcmp(dir, "up_multi"))
{
if (_key_action_move_dir(obj, ELM_FOCUS_UP, EINA_TRUE)) return EINA_TRUE;
else if (_key_action_move_dir(obj, ELM_FOCUS_UP, EINA_FALSE)) return EINA_TRUE;
else return EINA_FALSE;
}
else if (!strcmp(dir, "down"))
{
if (_key_action_move_dir(obj, ELM_FOCUS_DOWN, EINA_FALSE)) return EINA_TRUE;
else return EINA_FALSE;
}
else if (!strcmp(dir, "down_multi"))
{
if (_key_action_move_dir(obj, ELM_FOCUS_DOWN, EINA_TRUE)) return EINA_TRUE;