From f4d5d57e17496098eeb9427a5b196d26963d5c78 Mon Sep 17 00:00:00 2001 From: Sungtaek Hong Date: Tue, 7 Feb 2017 13:31:03 -0800 Subject: [PATCH] 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 --- 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 30e4773bf9..7b118beaef 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: