elm_panel: set scrollable panel unfocusable when closed 55/114755/2
authorSungtaek Hong <sth253.hong@samsung.com>
Wed, 15 Feb 2017 02:23:02 +0000 (11:23 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 15 Feb 2017 04:39:39 +0000 (20:39 -0800)
 - 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.

origin: upstream(f4d5d57e17496098eeb9427a5b196d26963d5c78)

Change-Id: I43e32a10845f81a3c146a2dbd59093b6606c6759
Signed-off-by: Sungtaek Hong <sth253.hong@samsung.com>
src/lib/elm_panel.c

index f8fb3848c320f7395d9f990155abd0e731ef2544..bd9ca03e157f62a3343ecc5196fdd1fcc6c8162f 100644 (file)
@@ -407,6 +407,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: