diff options
author | shilpa.singh <shilpa.singh@samsung.com> | 2015-06-10 13:04:11 +0100 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2015-06-10 13:04:11 +0100 |
commit | 0dd76d7ea80fc00dbdac7fcc1ff1d860d9f4d86d (patch) | |
tree | 4e9c393266577e3d4efc333f16c37867b71dadc2 | |
parent | be0c2f5a317cda9ff836c680af11ea5d8aa76294 (diff) |
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.c | 12 |
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, | |||
1684 | _edje_emit(ed, "entry,key,end", rp->part->name); | 1684 | _edje_emit(ed, "entry,key,end", rp->part->name); |
1685 | ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; | 1685 | ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; |
1686 | } | 1686 | } |
1687 | else if ((control) && (!shift) && (!strcmp(ev->key, "v"))) | 1687 | else if ((control) && (!shift) && (!strcmp(ev->keyname, "v"))) |
1688 | { | 1688 | { |
1689 | _compose_seq_reset(en); | 1689 | _compose_seq_reset(en); |
1690 | _edje_emit(ed, "entry,paste,request", rp->part->name); | 1690 | _edje_emit(ed, "entry,paste,request", rp->part->name); |
1691 | _edje_emit(ed, "entry,paste,request,3", rp->part->name); | 1691 | _edje_emit(ed, "entry,paste,request,3", rp->part->name); |
1692 | ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; | 1692 | ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; |
1693 | } | 1693 | } |
1694 | else if ((control) && (!strcmp(ev->key, "a"))) | 1694 | else if ((control) && (!strcmp(ev->keyname, "a"))) |
1695 | { | 1695 | { |
1696 | _compose_seq_reset(en); | 1696 | _compose_seq_reset(en); |
1697 | if (shift) | 1697 | if (shift) |
@@ -1705,19 +1705,19 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, | |||
1705 | ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; | 1705 | ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; |
1706 | } | 1706 | } |
1707 | } | 1707 | } |
1708 | else if ((control) && (((!shift) && !strcmp(ev->key, "c")) || !strcmp(ev->key, "Insert"))) | 1708 | else if ((control) && (((!shift) && !strcmp(ev->keyname, "c")) || !strcmp(ev->key, "Insert"))) |
1709 | { | 1709 | { |
1710 | _compose_seq_reset(en); | 1710 | _compose_seq_reset(en); |
1711 | _edje_emit(ed, "entry,copy,notify", rp->part->name); | 1711 | _edje_emit(ed, "entry,copy,notify", rp->part->name); |
1712 | ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; | 1712 | ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; |
1713 | } | 1713 | } |
1714 | else if ((control) && (!shift) && ((!strcmp(ev->key, "x") || (!strcmp(ev->key, "m"))))) | 1714 | else if ((control) && (!shift) && ((!strcmp(ev->keyname, "x") || (!strcmp(ev->keyname, "m"))))) |
1715 | { | 1715 | { |
1716 | _compose_seq_reset(en); | 1716 | _compose_seq_reset(en); |
1717 | _edje_emit(ed, "entry,cut,notify", rp->part->name); | 1717 | _edje_emit(ed, "entry,cut,notify", rp->part->name); |
1718 | ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; | 1718 | ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; |
1719 | } | 1719 | } |
1720 | else if ((control) && (!strcmp(ev->key, "z"))) | 1720 | else if ((control) && (!strcmp(ev->keyname, "z"))) |
1721 | { | 1721 | { |
1722 | _compose_seq_reset(en); | 1722 | _compose_seq_reset(en); |
1723 | if (shift) | 1723 | if (shift) |
@@ -1732,7 +1732,7 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, | |||
1732 | } | 1732 | } |
1733 | ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; | 1733 | ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; |
1734 | } | 1734 | } |
1735 | else if ((control) && (!shift) && (!strcmp(ev->key, "y"))) | 1735 | else if ((control) && (!shift) && (!strcmp(ev->keyname, "y"))) |
1736 | { | 1736 | { |
1737 | _compose_seq_reset(en); | 1737 | _compose_seq_reset(en); |
1738 | // redo | 1738 | // redo |