forked from enlightenment/enlightenment
make page-up/down select item one page further
unfocus gadget icon on hide SVN revision: 49374
This commit is contained in:
parent
4f2750dc81
commit
47bcca08ec
|
@ -128,6 +128,7 @@ static void _del_func(void *data, void *obj)
|
||||||
e_object_delfn_del(E_OBJECT(inst->win->popup), inst->del_fn);
|
e_object_delfn_del(E_OBJECT(inst->win->popup), inst->del_fn);
|
||||||
inst->del_fn = NULL;
|
inst->del_fn = NULL;
|
||||||
inst->win = NULL;
|
inst->win = NULL;
|
||||||
|
edje_object_signal_emit(inst->o_button, "e,state,unfocused", "e");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -755,6 +755,8 @@ _child_region_get(Evas_Object *obj, Evas_Coord y, Evas_Coord h)
|
||||||
if (ny > y) ny = y;
|
if (ny > y) ny = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ny < 0) ny = 0;
|
||||||
|
|
||||||
return ny;
|
return ny;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1296,6 +1298,35 @@ _cb_key_down(Evry_View *view, const Ecore_Event_Key *ev)
|
||||||
}
|
}
|
||||||
goto end;
|
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"))
|
else if (!ev->modifiers && !strcmp(key, "Return"))
|
||||||
{
|
{
|
||||||
if (v->mode == VIEW_MODE_THUMB)
|
if (v->mode == VIEW_MODE_THUMB)
|
||||||
|
|
|
@ -351,6 +351,8 @@ _tabs_key_down(Tab_View *v, const Ecore_Event_Key *ev)
|
||||||
|
|
||||||
if (!v->state || !v->state->cur_plugins) return 0;
|
if (!v->state || !v->state->cur_plugins) return 0;
|
||||||
|
|
||||||
|
if (ev->modifiers & ECORE_EVENT_MODIFIER_SHIFT)
|
||||||
|
{
|
||||||
if (!strcmp(key, "Next"))
|
if (!strcmp(key, "Next"))
|
||||||
{
|
{
|
||||||
_plugin_next(v);
|
_plugin_next(v);
|
||||||
|
@ -359,14 +361,15 @@ _tabs_key_down(Tab_View *v, const Ecore_Event_Key *ev)
|
||||||
else if (!strcmp(key, "Prior"))
|
else if (!strcmp(key, "Prior"))
|
||||||
{
|
{
|
||||||
_plugin_prev(v);
|
_plugin_prev(v);
|
||||||
return -1;
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (ev->modifiers & ECORE_EVENT_MODIFIER_CTRL)
|
else if (ev->modifiers & ECORE_EVENT_MODIFIER_CTRL)
|
||||||
{
|
{
|
||||||
if (!strcmp(key, "Left"))
|
if (!strcmp(key, "Left"))
|
||||||
{
|
{
|
||||||
_plugin_prev(v);
|
_plugin_prev(v);
|
||||||
return -1;
|
return 1;
|
||||||
}
|
}
|
||||||
else if (!strcmp(key, "Right"))
|
else if (!strcmp(key, "Right"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue