forked from enlightenment/efl
From: Jihoon Kim <jihoon48.kim@samsung.com>
Entry widget has not processed the key event of keypad such as KP_Left, KP_Right, KP_Home, KP_End, and so on. In this patch, those key events is processed. SVN revision: 54359
This commit is contained in:
parent
2b6b563f62
commit
a69afcfb91
|
@ -1008,7 +1008,7 @@ _edje_key_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v
|
||||||
_edje_emit(ed, "entry,key,escape", rp->part->name);
|
_edje_emit(ed, "entry,key,escape", rp->part->name);
|
||||||
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
||||||
}
|
}
|
||||||
else if (!strcmp(ev->key, "Up"))
|
else if (!strcmp(ev->key, "Up") || !strcmp(ev->key, "KP_Up"))
|
||||||
{
|
{
|
||||||
if (multiline)
|
if (multiline)
|
||||||
{
|
{
|
||||||
|
@ -1026,7 +1026,7 @@ _edje_key_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v
|
||||||
}
|
}
|
||||||
_edje_emit(ed, "entry,key,up", rp->part->name);
|
_edje_emit(ed, "entry,key,up", rp->part->name);
|
||||||
}
|
}
|
||||||
else if (!strcmp(ev->key, "Down"))
|
else if (!strcmp(ev->key, "Down") || !strcmp(ev->key, "KP_Down"))
|
||||||
{
|
{
|
||||||
if (multiline)
|
if (multiline)
|
||||||
{
|
{
|
||||||
|
@ -1044,7 +1044,7 @@ _edje_key_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v
|
||||||
}
|
}
|
||||||
_edje_emit(ed, "entry,key,down", rp->part->name);
|
_edje_emit(ed, "entry,key,down", rp->part->name);
|
||||||
}
|
}
|
||||||
else if (!strcmp(ev->key, "Left"))
|
else if (!strcmp(ev->key, "Left") || !strcmp(ev->key, "KP_Left"))
|
||||||
{
|
{
|
||||||
if (en->select_allow)
|
if (en->select_allow)
|
||||||
{
|
{
|
||||||
|
@ -1059,7 +1059,7 @@ _edje_key_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v
|
||||||
_edje_emit(ed, "entry,key,left", rp->part->name);
|
_edje_emit(ed, "entry,key,left", rp->part->name);
|
||||||
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
||||||
}
|
}
|
||||||
else if (!strcmp(ev->key, "Right"))
|
else if (!strcmp(ev->key, "Right") || !strcmp(ev->key, "KP_Right"))
|
||||||
{
|
{
|
||||||
if (en->select_allow)
|
if (en->select_allow)
|
||||||
{
|
{
|
||||||
|
@ -1098,7 +1098,7 @@ _edje_key_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v
|
||||||
_edje_emit(ed, "entry,key,backspace", rp->part->name);
|
_edje_emit(ed, "entry,key,backspace", rp->part->name);
|
||||||
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
||||||
}
|
}
|
||||||
else if (!strcmp(ev->key, "Delete"))
|
else if (!strcmp(ev->key, "Delete") || !strcmp(ev->key, "KP_Delete"))
|
||||||
{
|
{
|
||||||
if (control)
|
if (control)
|
||||||
{
|
{
|
||||||
|
@ -1122,7 +1122,7 @@ _edje_key_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v
|
||||||
_edje_emit(ed, "entry,key,delete", rp->part->name);
|
_edje_emit(ed, "entry,key,delete", rp->part->name);
|
||||||
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
||||||
}
|
}
|
||||||
else if (!strcmp(ev->key, "Home"))
|
else if (!strcmp(ev->key, "Home") || !strcmp(ev->key, "KP_Home"))
|
||||||
{
|
{
|
||||||
if (en->select_allow)
|
if (en->select_allow)
|
||||||
{
|
{
|
||||||
|
@ -1140,7 +1140,7 @@ _edje_key_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v
|
||||||
_edje_emit(ed, "entry,key,home", rp->part->name);
|
_edje_emit(ed, "entry,key,home", rp->part->name);
|
||||||
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
||||||
}
|
}
|
||||||
else if (!strcmp(ev->key, "End"))
|
else if (!strcmp(ev->key, "End") || !strcmp(ev->key, "KP_End"))
|
||||||
{
|
{
|
||||||
if (en->select_allow)
|
if (en->select_allow)
|
||||||
{
|
{
|
||||||
|
@ -1225,7 +1225,7 @@ _edje_key_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v
|
||||||
// remove a tab
|
// remove a tab
|
||||||
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
||||||
}
|
}
|
||||||
else if (!strcmp(ev->key, "Prior"))
|
else if (!strcmp(ev->key, "Prior") || !strcmp(ev->key, "KP_Prior"))
|
||||||
{
|
{
|
||||||
if (en->select_allow)
|
if (en->select_allow)
|
||||||
{
|
{
|
||||||
|
@ -1240,7 +1240,7 @@ _edje_key_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v
|
||||||
_edje_emit(ed, "entry,key,pgup", rp->part->name);
|
_edje_emit(ed, "entry,key,pgup", rp->part->name);
|
||||||
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
||||||
}
|
}
|
||||||
else if (!strcmp(ev->key, "Next"))
|
else if (!strcmp(ev->key, "Next") || !strcmp(ev->key, "KP_Next"))
|
||||||
{
|
{
|
||||||
if (en->select_allow)
|
if (en->select_allow)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue