edje_entry: fix "command do nothing when capslock on"
authorJinYong Park <j4939.park@samsung.com>
Thu, 23 Nov 2017 10:45:09 +0000 (19:45 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Thu, 21 Dec 2017 09:24:04 +0000 (18:24 +0900)
original patch : https://review.tizen.org/gerrit/#/c/98668/

@tizen_fix

Change-Id: Ib4866de0295b4dff144c621a71d2e789d46bb437
Signed-off-by: JinYong Park <j4939.park@samsung.com>
src/lib/edje/edje_entry.c

index 3fa1299..cfe1514 100644 (file)
@@ -2032,9 +2032,17 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
         ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
      }
 #if defined(__APPLE__) && defined(__MACH__)
+   /* TIZEN_ONLY(20161118): fix "command do nothing when capslock on"
    else if ((super) && (!shift) && (!strcmp(ev->keyname, "v")))
+   */
+   else if ((super) && (!shift) && (!strcasecmp(ev->keyname, "v")))
+   /* END */
 #else
+   /* TIZEN_ONLY(20161118): fix "command do nothing when capslock on"
    else if ((control) && (!shift) && (!strcmp(ev->keyname, "v")))
+   */
+   else if ((control) && (!shift) && (!strcasecmp(ev->keyname, "v")))
+   /* END */
 #endif
      {
         _compose_seq_reset(en);
@@ -2043,9 +2051,17 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
         ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
      }
 #if defined(__APPLE__) && defined(__MACH__)
+   /* TIZEN_ONLY(20161118): fix "command do nothing when capslock on"
    else if ((super) && (!strcmp(ev->keyname, "a")))
+   */
+   else if ((super) && (!strcasecmp(ev->keyname, "a")))
+   /* END */
 #else
+   /* TIZEN_ONLY(20161118): fix "command do nothing when capslock on"
    else if ((control) && (!strcmp(ev->keyname, "a")))
+   */
+   else if ((control) && (!strcasecmp(ev->keyname, "a")))
+   /* END */
 #endif
      {
         _compose_seq_reset(en);
@@ -2061,9 +2077,17 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
           }
      }
 #if defined(__APPLE__) && defined(__MACH__)
+   /* TIZEN_ONLY(20161118): fix "command do nothing when capslock on"
    else if ((super) && (((!shift) && !strcmp(ev->keyname, "c")) || !strcmp(ev->key, "Insert")))
+   */
+   else if ((super) && (((!shift) && !strcasecmp(ev->keyname, "c")) || !strcmp(ev->key, "Insert")))
+   /* END */
 #else
+   /* TIZEN_ONLY(20161118): fix "command do nothing when capslock on"
    else if ((control) && (((!shift) && !strcmp(ev->keyname, "c")) || !strcmp(ev->key, "Insert")))
+   */
+   else if ((control) && (((!shift) && !strcasecmp(ev->keyname, "c")) || !strcmp(ev->key, "Insert")))
+   /* END */
 #endif
      {
         _compose_seq_reset(en);
@@ -2071,9 +2095,17 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
         ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
      }
 #if defined(__APPLE__) && defined(__MACH__)
+   /* TIZEN_ONLY(20161118): fix "command do nothing when capslock on"
    else if ((super) && (!shift) && ((!strcmp(ev->keyname, "x") || (!strcmp(ev->keyname, "m")))))
+   */
+   else if ((super) && (!shift) && ((!strcasecmp(ev->keyname, "x") || (!strcasecmp(ev->keyname, "m")))))
+   /* END */
 #else
+   /* TIZEN_ONLY(20161118): fix "command do nothing when capslock on"
    else if ((control) && (!shift) && ((!strcmp(ev->keyname, "x") || (!strcmp(ev->keyname, "m")))))
+   */
+   else if ((control) && (!shift) && ((!strcasecmp(ev->keyname, "x") || (!strcasecmp(ev->keyname, "m")))))
+   /* END */
 #endif
      {
         _compose_seq_reset(en);
@@ -2081,9 +2113,17 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
         ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
      }
 #if defined(__APPLE__) && defined(__MACH__)
+   /* TIZEN_ONLY(20161118): fix "command do nothing when capslock on"
    else if ((super) && (!strcmp(ev->keyname, "z")))
+   */
+   else if ((super) && (!strcasecmp(ev->keyname, "z")))
+   /* END */
 #else
+   /* TIZEN_ONLY(20161118): fix "command do nothing when capslock on"
    else if ((control) && (!strcmp(ev->keyname, "z")))
+   */
+   else if ((control) && (!strcasecmp(ev->keyname, "z")))
+   /* END */
 #endif
      {
         _compose_seq_reset(en);
@@ -2100,9 +2140,17 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
         ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
      }
 #if defined(__APPLE__) && defined(__MACH__)
+   /* TIZEN_ONLY(20161118): fix "command do nothing when capslock on"
    else if ((super) && (!shift) && (!strcmp(ev->keyname, "y")))
+   */
+   else if ((super) && (!shift) && (!strcasecmp(ev->keyname, "y")))
+   /* END */
 #else
+   /* TIZEN_ONLY(20161118): fix "command do nothing when capslock on"
    else if ((control) && (!shift) && (!strcmp(ev->keyname, "y")))
+   */
+   else if ((control) && (!shift) && (!strcasecmp(ev->keyname, "y")))
+   /* END */
 #endif
      {
         _compose_seq_reset(en);