inputmgr_add_callback(priv->reset_btn, 0, &reset_btn_handler, priv);
inputmgr_add_callback(priv->cancel_btn, 1, &cancel_btn_handler, priv);
+ utils_set_obj_focus(priv->reset_btn, priv->reset_btn, priv->cancel_btn,
+ priv->reset_btn, priv->reset_btn, priv->cancel_btn,
+ priv->reset_btn, false);
+ utils_set_obj_focus(priv->cancel_btn, priv->reset_btn, priv->cancel_btn,
+ priv->cancel_btn, priv->cancel_btn, priv->cancel_btn,
+ priv->reset_btn, false);
+
if (!viewmgr_set_view_data(VIEW_RESET, priv)) {
_ERR("Set view data failed.");
evas_object_del(priv->popup);
}
elm_popup_allow_events_set(priv->popup, EINA_FALSE);
- elm_object_focus_set(priv->cancel_btn, EINA_TRUE);
evas_object_show(priv->popup);
+ elm_object_focus_set(priv->cancel_btn, EINA_TRUE);
}
static void _hide(void *data)
return;
if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_WAY)
- || !strcmp(ev->keyname, KEY_ESC) || !strcmp(ev->keyname, KEY_ESC_WAY))
+ || !strcmp(ev->keyname, KEY_ESC) || !strcmp(ev->keyname, KEY_ESC_WAY))
viewmgr_pop_view();
}