From: Jihoon Kim Date: Thu, 10 Mar 2022 02:38:51 +0000 (+0900) Subject: Revise code for improving readability X-Git-Tag: submit/tizen/20220329.014018~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F272128%2F2;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wl-textinput.git Revise code for improving readability Change-Id: I70f1db81f44a919fec98582d18a9e4f792522098 Signed-off-by: Jihoon Kim --- diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 304311c..bb34df1 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -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;