ctxpopup: focus set when show animation is finished 99/103199/2
authorJinYong Park <j4939.park@samsung.com>
Wed, 7 Dec 2016 13:41:57 +0000 (22:41 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 9 Dec 2016 04:00:17 +0000 (20:00 -0800)
Change-Id: Ic7aca1f07f42ab8797815fd2b7380d28a159d5e3
Signed-off-by: Jinyong Park <j4939.park@samsung.com>
src/mobile_lib/elc_ctxpopup.c

index 5f6e458..07f1a62 100644 (file)
@@ -1734,6 +1734,17 @@ _hide_finished_cb(void *data,
    eo_do(data, eo_event_callback_call(ELM_CTXPOPUP_EVENT_DISMISSED, NULL));
 }
 
+/* TIZEN_ONLY(20161207): add show finished callback */
+static void
+_show_finished_cb(void *data,
+                  Evas_Object *obj EINA_UNUSED,
+                  const char *emission EINA_UNUSED,
+                  const char *source EINA_UNUSED)
+{
+   elm_object_focus_set(data, EINA_TRUE);
+}
+/* END */
+
 static void
 _list_del(Eo *obj, Elm_Ctxpopup_Data *sd)
 {
@@ -1844,6 +1855,11 @@ _elm_ctxpopup_evas_object_smart_add(Eo *obj, Elm_Ctxpopup_Data *priv)
 
    edje_object_signal_callback_add
      (priv->layout, "elm,action,hide,finished", "", _hide_finished_cb, obj);
+   /* TIZEN_ONLY(20161207): Add show finished callback */
+   edje_object_signal_callback_add
+     (priv->layout, "elm,action,show,finished", "", _show_finished_cb, obj);
+   /* END */
+
    edje_object_part_swallow(priv->layout, "swallow", wd->resize_obj);
    evas_object_size_hint_weight_set
      (priv->layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);