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 <cedric@osg.samsung.com>
This commit is contained in:
Sungtaek Hong 2017-02-07 13:31:03 -08:00 committed by Cedric BAIL
parent 8ac66d9dc0
commit f4d5d57e17
1 changed files with 1 additions and 0 deletions

View File

@ -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: