#define KEY_LEFT "Left"
#define KEY_RIGHT "Right"
#define KEY_ENTER "Return"
-#define KEY_EXIT "XF86Close"
+#define KEY_ENTER_REMOTE "KP_Enter"
+#define KEY_EXIT "Exit"
#define KEY_BACK "Escape"
+#define KEY_BACK_REMOTE "XF86Close"
#define KEY_0 "0"
#define KEY_1 "1"
priv = data;
- if (!strcmp(ev->keyname, KEY_LEFT) ||
- !strcmp(ev->keyname, KEY_BACK)) {
+ if (!strcmp(ev->keyname, KEY_LEFT) || !strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
pb = evas_object_data_get(obj, PROGRESS_BAR_DATA);
if (pb)
elm_object_signal_emit(pb,
_draw_subitems(priv, name);
} else if (!strcmp(ev->keyname, KEY_RIGHT)) {
_move_from_main_item_to_subitem(priv, obj);
- } else if (!strcmp(ev->keyname, KEY_EXIT) ||
- !strcmp(ev->keyname, KEY_BACK)) {
+ } else if (!strcmp(ev->keyname, KEY_EXIT) || !strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
app_efl_exit();
}
}
if (btn_num == -1)
return;
- if (!strncmp(keyname, KEY_BACK, strlen(keyname))) {
+ if (!strncmp(keyname, KEY_BACK, strlen(keyname)) || !strncmp(keyname, KEY_BACK_REMOTE, strlen(keyname))) {
settingmgr_view_pop(data->mgr);
} else if (!strncmp(keyname, KEY_DOWN, strlen(keyname))) {
elm_object_focus_set(data->cancel_btn, EINA_TRUE);
}
}
- if (!strncmp(keyname, KEY_BACK, strlen(keyname))) {
+ if (!strncmp(keyname, KEY_BACK, strlen(keyname)) || !strncmp(keyname, KEY_BACK_REMOTE, strlen(keyname))) {
settingmgr_view_pop(data->mgr);
} else if (!strncmp(keyname, KEY_DOWN, strlen(keyname))) {
elm_object_focus_set(data->cancel_btn, EINA_TRUE);
ev = ei;
priv = data;
- if (!strcmp(ev->keyname, KEY_BACK))
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE))
_exit_view(priv);
}
if (!ev->keyname)
return;
- if (!strncmp(ev->keyname, KEY_BACK, BUF_SIZE))
+ if (!strncmp(ev->keyname, KEY_BACK, BUF_SIZE) || !strncmp(ev->keyname, KEY_BACK_REMOTE, BUF_SIZE))
_exit_view(data);
}
#define BORDER_H1 14
#define BORDER_H2 14
+/* Key defines */
+#define KEY_BACK_REMOTE "XF86Close"
+
#endif /* __DEFS_H__ */
return;
}
- if (!strcmp(ev->keyname, KEY_BACK))
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE))
ug_destroy_me(ugd->ug);
}
#define KEY_LEFT "Left"
#define KEY_RIGHT "Right"
#define KEY_ENTER "Return"
-#define KEY_EXIT "XF86Close"
+#define KEY_ENTER_REMOTE "KP_Enter"
+#define KEY_EXIT "Exit"
+#define KEY_BACK_REMOTE "XF86Close"
#define KEY_0 "0"
#define KEY_1 "1"
return;
}
- if (!strcmp(ev->keyname, KEY_BACK)) {
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
_unset_layout_dim(priv);
evas_object_del(priv->ip_mode_ly);
return;
}
- if (!strcmp(ev->keyname, KEY_BACK)) {
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
_unset_layout_dim(priv);
evas_object_del(obj);
}
return;
}
- if (!strcmp(ev->keyname, KEY_ENTER)) {
+ if (!strcmp(ev->keyname, KEY_ENTER) || !strcmp(ev->keyname, KEY_ENTER_REMOTE)) {
_unset_layout_dim(priv);
_set_the_value(priv);
evas_object_del(obj);
- } else if (!strcmp(ev->keyname, KEY_BACK)) {
+ } else if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
_unset_layout_dim(priv);
evas_object_del(obj);
}
return;
}
- if (!strcmp(ev->keyname, KEY_BACK)) {
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
_unset_layout_dim(priv);
evas_object_del(priv->dns_mode_ly);
priv->dns_mode_ly = NULL;
return;
}
- if (!strcmp(ev->keyname, KEY_BACK)) {
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
viewmgr_pop(priv->vmgr);
return;
}
return;
}
- if (!strcmp(ev->keyname, KEY_BACK)) {
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
_unset_layout_dim(priv);
evas_object_del(obj);
}
if (!priv->ug)
return;
- if (!strcmp(ev->keyname, KEY_BACK))
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE))
ug_destroy_me(priv->ug);
}
return;
}
- if (!strcmp(ev->keyname, KEY_BACK)) {
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
_unset_layout_dim(priv);
if (priv->network_ctxpopup) {
return;
}
- if (!strcmp(ev->keyname, KEY_BACK))
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE))
viewmgr_pop(priv->vmgr);
}
return;
}
- if (!strcmp(ev->keyname, KEY_BACK)) {
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
_unset_layout_dim(priv);
evas_object_del(obj);
#define KEY_LEFT "Left"
#define KEY_RIGHT "Right"
#define KEY_ENTER "Return"
-#define KEY_EXIT "XF86Close"
+#define KEY_ENTER_REMOTE "KP_Enter"
+#define KEY_EXIT "Exit"
+#define KEY_BACK_REMOTE "XF86Close"
#define KEY_0 "0"
#define KEY_1 "1"
return;
}
- if (!strcmp(ev->keyname, KEY_BACK)) {
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
ug_destroy_me(priv->ug);
return;
}
return;
}
- if (!strcmp(ev->keyname, KEY_BACK)) {
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
_unset_layout_dim(priv);
if (priv->ctxpopup) {
return;
}
- if (!strcmp(ev->keyname, KEY_ENTER)) {
+ if (!strcmp(ev->keyname, KEY_ENTER) || !strcmp(ev->keyname, KEY_ENTER_REMOTE)) {
_unset_layout_dim(priv);
_set_the_value(priv);
evas_object_del(obj);
- } else if (!strcmp(ev->keyname, KEY_BACK)) {
+ } else if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
_unset_layout_dim(priv);
evas_object_del(obj);
}
elm_entry_input_panel_show(obj);
- if (!strcmp(ev->keyname, KEY_BACK)) {
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
if (priv->ctxpopup) {
evas_object_del(priv->ctxpopup);
priv->ctxpopup = NULL;
#define KEY_DOWN "Down"
#define KEY_LEFT "Left"
#define KEY_RIGHT "Right"
+#define KEY_BACK_REMOTE "XF86Close"
#define KEY_0 "0"
#define KEY_1 "1"
if (!keyname || !data || !data->ug)
return;
- if (!strncmp(keyname, KEY_BACK, strlen(keyname)))
+ if (!strncmp(keyname, KEY_BACK, strlen(keyname)) || !strncmp(keyname, KEY_BACK_REMOTE, strlen(keyname)))
ug_destroy_me(data->ug);
}
} else if (!strncmp(keyname, KEY_RIGHT, strlen(keyname)) ||
!strncmp(keyname, KEY_LEFT, strlen(keyname))) {
data->entry[idx] = 0;
- } else if (!strncmp(keyname, KEY_BACK, strlen(keyname))) {
+ } else if (!strncmp(keyname, KEY_BACK, strlen(keyname)) || !strncmp(keyname, KEY_BACK_REMOTE, strlen(keyname))) {
_destroy(data->base);
}
}
elm_object_signal_emit(on_btn, SIG_SRC_FOC_HIDE_ICON,
SIG_NAME_SUBLIST);
}
- } else if (!strncmp(keyname, KEY_BACK, strlen(keyname))) {
+ } else if (!strncmp(keyname, KEY_BACK, strlen(keyname)) || !strncmp(keyname, KEY_BACK_REMOTE, strlen(keyname))) {
_destroy(data->base);
}
}
data->entry[TIME_MINUTE] = 0;
else
return;
- } else if (!strncmp(keyname, KEY_BACK, strlen(keyname))) {
+ } else if (!strncmp(keyname, KEY_BACK, strlen(keyname)) || !strncmp(keyname, KEY_BACK_REMOTE, strlen(keyname))) {
_destroy(data->base);
}
}
#define KEY_DOWN "Down"
#define KEY_LEFT "Left"
#define KEY_RIGHT "Right"
-#define KEY_EXIT "XF86Close"
+#define KEY_ENTER "Return"
+#define KEY_ENTER_REMOTE "KP_Enter"
+#define KEY_EXIT "Exit"
+#define KEY_BACK_REMOTE "XF86Close"
#define KEY_0 "0"
#define KEY_1 "1"
return;
}
- if (!strcmp(ev->keyname, KEY_BACK)) {
+ if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
if (priv->dim_ly)
evas_object_hide(priv->dim_ly);
return;
}
- if (!strcmp(ei->keyname, KEY_BACK) ||
- !strcmp(ei->keyname, KEY_EXIT)) {
+ if (!strcmp(ei->keyname, KEY_BACK) || !strcmp(ei->keyname, KEY_BACK_REMOTE) || !strcmp(ei->keyname, KEY_EXIT)) {
ug_destroy_me(priv->ug);
_fini_priv(priv);
}