summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshilpa.singh <shilpa.singh@samsung.com>2015-06-10 13:04:11 +0100
committerTom Hacohen <tom@stosb.com>2015-06-10 13:04:11 +0100
commit0dd76d7ea80fc00dbdac7fcc1ff1d860d9f4d86d (patch)
tree4e9c393266577e3d4efc333f16c37867b71dadc2
parentbe0c2f5a317cda9ff836c680af11ea5d8aa76294 (diff)
downloadefl-0dd76d7ea80fc00dbdac7fcc1ff1d860d9f4d86d.tar.gz
Edje_entry: Fix control + (x,a,y,z,m,c) not working issue.
Summary: When caps lock is "On" and we press control + (x,a,y,z,m,c) none of these operations work issue fix. @fix Test Plan: 1. Caps lock On 2. Input some text 3. Press ctrl+a, ctrl+c etc:- 4. Select, copy, cut etc:- operations does not work Reviewers: tasn Subscribers: raster, rajeshps, govi, poornima.srinivasan, navnbeet, subodh6129, cedric Differential Revision: https://phab.enlightenment.org/D2633
-rw-r--r--src/lib/edje/edje_entry.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index 9c5c3325a9..e0b508d190 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -1684,14 +1684,14 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
_edje_emit(ed, "entry,key,end", rp->part->name);
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
}
- else if ((control) && (!shift) && (!strcmp(ev->key, "v")))
+ else if ((control) && (!shift) && (!strcmp(ev->keyname, "v")))
{
_compose_seq_reset(en);
_edje_emit(ed, "entry,paste,request", rp->part->name);
_edje_emit(ed, "entry,paste,request,3", rp->part->name);
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
}
- else if ((control) && (!strcmp(ev->key, "a")))
+ else if ((control) && (!strcmp(ev->keyname, "a")))
{
_compose_seq_reset(en);
if (shift)
@@ -1705,19 +1705,19 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
}
}
- else if ((control) && (((!shift) && !strcmp(ev->key, "c")) || !strcmp(ev->key, "Insert")))
+ else if ((control) && (((!shift) && !strcmp(ev->keyname, "c")) || !strcmp(ev->key, "Insert")))
{
_compose_seq_reset(en);
_edje_emit(ed, "entry,copy,notify", rp->part->name);
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
}
- else if ((control) && (!shift) && ((!strcmp(ev->key, "x") || (!strcmp(ev->key, "m")))))
+ else if ((control) && (!shift) && ((!strcmp(ev->keyname, "x") || (!strcmp(ev->keyname, "m")))))
{
_compose_seq_reset(en);
_edje_emit(ed, "entry,cut,notify", rp->part->name);
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
}
- else if ((control) && (!strcmp(ev->key, "z")))
+ else if ((control) && (!strcmp(ev->keyname, "z")))
{
_compose_seq_reset(en);
if (shift)
@@ -1732,7 +1732,7 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
}
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
}
- else if ((control) && (!shift) && (!strcmp(ev->key, "y")))
+ else if ((control) && (!shift) && (!strcmp(ev->keyname, "y")))
{
_compose_seq_reset(en);
// redo