forked from enlightenment/efl
Reveal the last bug in elm test focus 6
The highlight should start on the second genlist item, instead nothing is highlighted on first run. The highlight come back to normal if you press up/down, or if you give/remove the focus to the window 2 times.
This commit is contained in:
parent
0add1e1761
commit
1e87f50eea
|
@ -1149,8 +1149,8 @@ test_focus6(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
|
||||||
{
|
{
|
||||||
elm_genlist_item_selected_set(it, EINA_TRUE);
|
elm_genlist_item_selected_set(it, EINA_TRUE);
|
||||||
|
|
||||||
/* This is another bug! This focus item at start do not work */
|
/* focus should start from second item */
|
||||||
// elm_object_item_focus_set(it, EINA_TRUE);
|
elm_object_item_focus_set(it, EINA_TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elm_genlist_item_class_free(itc);
|
elm_genlist_item_class_free(itc);
|
||||||
|
@ -1163,8 +1163,8 @@ test_focus6(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
|
||||||
elm_layout_box_append(ly, "box", btn);
|
elm_layout_box_append(ly, "box", btn);
|
||||||
evas_object_show(btn);
|
evas_object_show(btn);
|
||||||
/* focus should start from second button */
|
/* focus should start from second button */
|
||||||
if (i == 1)
|
// if (i == 1)
|
||||||
elm_object_focus_set(btn, EINA_TRUE);
|
// elm_object_focus_set(btn, EINA_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 4 buttons (not focusable) to test focus move by API
|
// 4 buttons (not focusable) to test focus move by API
|
||||||
|
|
Loading…
Reference in New Issue