sanghyeonlee pushed a commit to branch master.

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

commit c3f37111ff6455a2a89cb760c76fb9cb08a7e202
Author: SangHyeon Jade Lee <[email protected]>
Date:   Wed Dec 26 19:45:44 2018 +0900

    efl_ui: activate widget focus on efl.ui.item.
    
    Summary:
    Unlikely efl.ui.Layout, Item need to be focusable,
    so it may traverse list by your command of focus moving.
    
    Test Plan:
    tested in
    efl_ui_list_example_1.c
    efl_ui_grid_example_1.c
    check whether item show their focus properly.
    
    scroll feature is not yet supported by efl_ui_scroll itself.
    
    Reviewers: eagleeye, cedric, Hermet, felipealmeida, bu5hm4n
    
    Reviewed By: bu5hm4n
    
    Subscribers: bu5hm4n, cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D7465
---
 src/lib/elementary/efl_ui_item.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/elementary/efl_ui_item.c b/src/lib/elementary/efl_ui_item.c
index 5eed4b2c7b..aad857bb24 100644
--- a/src/lib/elementary/efl_ui_item.c
+++ b/src/lib/elementary/efl_ui_item.c
@@ -216,6 +216,9 @@ _efl_ui_item_efl_object_finalize(Eo *obj, Efl_Ui_Item_Data 
*pd EINA_UNUSED)
    eo = efl_finalize(efl_super(obj, MY_CLASS));
    ELM_WIDGET_DATA_GET_OR_RETURN(eo, wd, eo);
 
+   /* Support Item Focus Feature */
+   elm_widget_can_focus_set(obj, EINA_TRUE);
+
    _item_mouse_callback_add(wd->resize_obj, eo);
    return eo;
 }

-- 


Reply via email to