davemds pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1e87f50eea1ed4a0afe826da78fec7026dd1478a

commit 1e87f50eea1ed4a0afe826da78fec7026dd1478a
Author: Dave Andreoli <[email protected]>
Date:   Mon Apr 2 12:09:57 2018 +0200

    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.
---
 src/bin/elementary/test_focus.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bin/elementary/test_focus.c b/src/bin/elementary/test_focus.c
index 567e6e9f7b..0c12e9de95 100644
--- a/src/bin/elementary/test_focus.c
+++ b/src/bin/elementary/test_focus.c
@@ -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);
 
-             /* This is another bug! This focus item at start do not work */
-             // elm_object_item_focus_set(it, EINA_TRUE);
+             /* focus should start from second item */
+             elm_object_item_focus_set(it, EINA_TRUE);
           }
      }
    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);
         evas_object_show(btn);
         /* focus should start from second button */
-        if (i == 1)
-          elm_object_focus_set(btn, EINA_TRUE);
+        // if (i == 1)
+          // elm_object_focus_set(btn, EINA_TRUE);
      }
 
    // 4 buttons (not focusable) to test focus move by API

-- 


Reply via email to