summaryrefslogtreecommitdiff
path: root/src/lib/elc_ctxpopup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elc_ctxpopup.c')
-rw-r--r--src/lib/elc_ctxpopup.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c
index 979f62235..812a97807 100644
--- a/src/lib/elc_ctxpopup.c
+++ b/src/lib/elc_ctxpopup.c
@@ -130,19 +130,16 @@ _elm_ctxpopup_smart_event(Eo *obj, void *_pd, va_list *list)
130 if (type != EVAS_CALLBACK_KEY_DOWN) return; 130 if (type != EVAS_CALLBACK_KEY_DOWN) return;
131 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return; 131 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
132 132
133 if (!strcmp(ev->key, "Tab"))
134 {
135 if (evas_key_modifier_is_set(ev->modifiers, "Shift"))
136 elm_widget_focus_cycle(sd->box, ELM_FOCUS_PREVIOUS);
137 else
138 elm_widget_focus_cycle(sd->box, ELM_FOCUS_NEXT);
139 if (ret) *ret = EINA_TRUE;
140 return;
141 }
142
143 if (sd->box) 133 if (sd->box)
144 { 134 {
145 if ((!strcmp(ev->key, "Left")) || 135 if (!strcmp(ev->key, "Tab"))
136 {
137 if (evas_key_modifier_is_set(ev->modifiers, "Shift"))
138 elm_widget_focus_cycle(sd->box, ELM_FOCUS_PREVIOUS);
139 else
140 elm_widget_focus_cycle(sd->box, ELM_FOCUS_NEXT);
141 }
142 else if ((!strcmp(ev->key, "Left")) ||
146 ((!strcmp(ev->key, "KP_Left")) && (!ev->string))) 143 ((!strcmp(ev->key, "KP_Left")) && (!ev->string)))
147 elm_widget_focus_cycle(sd->box, ELM_FOCUS_LEFT); 144 elm_widget_focus_cycle(sd->box, ELM_FOCUS_LEFT);
148 else if ((!strcmp(ev->key, "Right")) || 145 else if ((!strcmp(ev->key, "Right")) ||