cedric pushed a commit to branch master.

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

commit f4d5d57e17496098eeb9427a5b196d26963d5c78
Author: Sungtaek Hong <sth253.h...@samsung.com>
Date:   Tue Feb 7 13:31:03 2017 -0800

    elm_panel: set scrollable panel unfocusable when closed.
    
    Summary:
     - When scrollable panel is closed by elm_panel_hidden_set(),
       elm_panel_toggle() APIs, it shows animation with
       scroller bringin effect.
    
     - During this animation, panel is still focusable, and may
       stop closing when content gets focused.
    
     - scrollable panel is now set unfocusable when closed by
       APIs above, and set focusable when opened after bringin
       animation.
    
    Test Plan:
     1) Set panel scrollable and opened.
     2) Set another object focused and deleted it
        when panel is closing.
     3) Observe panel is closed.
    
    Reviewers: cedric, jpeg, woohyun
    
    Subscribers: conr2d, cedric, jpeg
    
    Differential Revision: https://phab.enlightenment.org/D4641
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/elementary/elm_panel.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/elementary/elm_panel.c b/src/lib/elementary/elm_panel.c
index 30e4773..7b118be 100644
--- a/src/lib/elementary/elm_panel.c
+++ b/src/lib/elementary/elm_panel.c
@@ -409,6 +409,7 @@ _drawer_close(Evas_Object *obj, Evas_Coord w, Evas_Coord h, 
Eina_Bool anim)
    int x = 0, y = 0;
    Eina_Bool horizontal = EINA_FALSE;
 
+   elm_widget_tree_unfocusable_set(obj, EINA_TRUE);
    switch (sd->orient)
      {
       case ELM_PANEL_ORIENT_TOP:

-- 


Reply via email to