Revise code for improving readability 28/272128/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 10 Mar 2022 02:38:51 +0000 (11:38 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 25 Mar 2022 04:40:16 +0000 (13:40 +0900)
Change-Id: I70f1db81f44a919fec98582d18a9e4f792522098
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_mod_main.c

index 304311c43b6a1654ec067b3b36c8564e158b9a9e..bb34df1f1a05702c616d2f84a924ef82b218751d 100644 (file)
@@ -1197,18 +1197,20 @@ _e_mod_ecore_key_down_cb(void *data, int type, void *event)
 
    /* process up/down/left/right and enter key exceptionally */
    /* KP_XXX key is used as arrow key and number key in keypad, so ev->string is used for checking whether KP_XXX key is number key or not */
-   if (((!strcmp(ev->key, "Down") ||
-         !strcmp(ev->key, "KP_Down") ||
-         !strcmp(ev->key, "Up") ||
-         !strcmp(ev->key, "KP_Up") ||
-         !strcmp(ev->key, "Right") ||
-         !strcmp(ev->key, "KP_Right") ||
-         !strcmp(ev->key, "Left") ||
-         !strcmp(ev->key, "KP_Left")) && !ev->string) ||
-         !strcmp(ev->key, "Return") ||
-         !strcmp(ev->key, "Pause") ||
-         !strcmp(ev->key, "NoSymbol") ||
-         !strncmp(ev->key, "XF86", 4) ||
+   if ((!strcmp(ev->key, "KP_Down") ||
+        !strcmp(ev->key, "KP_Up") ||
+        !strcmp(ev->key, "KP_Right") ||
+        !strcmp(ev->key, "KP_Left")) && !ev->string)
+     return ECORE_CALLBACK_PASS_ON;
+
+   if (!strcmp(ev->key, "Down") ||
+       !strcmp(ev->key, "Up") ||
+       !strcmp(ev->key, "Right") ||
+       !strcmp(ev->key, "Left") ||
+       !strcmp(ev->key, "Return") ||
+       !strcmp(ev->key, "Pause") ||
+       !strcmp(ev->key, "NoSymbol") ||
+       !strncmp(ev->key, "XF86", 4) ||
        !strncmp(ev->key, "Cancel", 5))
      return ECORE_CALLBACK_PASS_ON;