From: Soohye Shin Date: Mon, 10 Aug 2015 12:16:56 +0000 (+0900) Subject: set focus to done button by pressing enter key when focus be in the name entry X-Git-Tag: accepted/tizen/tv/20150811.014049^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83bfc1c56795101e099bf4e90618dd185f9a9670;p=profile%2Ftv%2Fapps%2Fnative%2Fair_home.git set focus to done button by pressing enter key when focus be in the name entry Change-Id: I64b242803a0cad15bf5d465bca71113be32ad0f4 Signed-off-by: Soohye Shin --- diff --git a/src/view/view_user_edit.c b/src/view/view_user_edit.c index 4d47e10..d3c067c 100644 --- a/src/view/view_user_edit.c +++ b/src/view/view_user_edit.c @@ -555,6 +555,8 @@ static void _select(struct _priv *priv, int id, Evas_Object *obj) _select_eo(priv, obj); break; case INPUT_HANDLER_TYPE_ENTRY: + elm_object_focus_set(priv->done, EINA_TRUE); + break; case INPUT_HANDLER_TYPE_BTN_DONE: _select_btn_done(priv); break; @@ -756,6 +758,7 @@ static void _destroy(void *data) inputmgr_remove_callback(priv->photo, &handler); inputmgr_remove_callback(priv->done, &handler); inputmgr_remove_callback(priv->cancel, &handler); + inputmgr_remove_callback(priv->name, &handler); viewmgr_remove_view(VIEW_PHOTO); evas_object_del(priv->base); free(priv);