e_object_delfn_del(E_OBJECT(inst->win->popup), inst->del_fn);
inst->del_fn = NULL;
inst->win = NULL;
+ edje_object_signal_emit(inst->o_button, "e,state,unfocused", "e");
}
static void
if (ny > y) ny = y;
}
+ if (ny < 0) ny = 0;
+
return ny;
}
}
goto end;
}
+ else if ((!strcmp(key, "Prior") || (!strcmp(key, "Next"))))
+ {
+ int cur = 0;
+ int next = (!strcmp(key, "Next"));
+ if (sd->cur_item)
+ cur = sd->cur_item->y;
+
+ EINA_LIST_FOREACH(sd->items, l, it)
+ {
+ if (next)
+ {
+ if (it->y >= cur + sd->h) break;
+ }
+ else
+ {
+ if (it->y >= cur - sd->h) break;
+ }
+
+ if (!l->next)
+ break;
+ }
+
+ if (it)
+ {
+ _pan_item_select(v->span, it, 0);
+ evry_item_select(s, it->item);
+ }
+ goto end;
+ }
else if (!ev->modifiers && !strcmp(key, "Return"))
{
if (v->mode == VIEW_MODE_THUMB)
if (!v->state || !v->state->cur_plugins) return 0;
- if (!strcmp(key, "Next"))
+ if (ev->modifiers & ECORE_EVENT_MODIFIER_SHIFT)
{
- _plugin_next(v);
- return 1;
- }
- else if (!strcmp(key, "Prior"))
- {
- _plugin_prev(v);
- return -1;
+ if (!strcmp(key, "Next"))
+ {
+ _plugin_next(v);
+ return 1;
+ }
+ else if (!strcmp(key, "Prior"))
+ {
+ _plugin_prev(v);
+ return 1;
+ }
}
else if (ev->modifiers & ECORE_EVENT_MODIFIER_CTRL)
{
if (!strcmp(key, "Left"))
{
_plugin_prev(v);
- return -1;
+ return 1;
}
else if (!strcmp(key, "Right"))
{