Handle key event cancel flag 18/238718/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 16 Jul 2020 11:54:25 +0000 (20:54 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 16 Jul 2020 11:54:48 +0000 (20:54 +0900)
Change-Id: I4449fa21990429db04339d389e4f97128ba77516
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_mod_main.c

index 613823ddafb5e82d078840bcf53a3e5731573f5b..0d713cb1d0c9d65b56200d66e909f9edcd78c396 100644 (file)
@@ -1168,6 +1168,11 @@ static Eina_Bool
 _e_mod_ecore_key_down_cb(void *data, int type, void *event)
 {
    Ecore_Event_Key *ev = (Ecore_Event_Key *)event;
+   if (ev->event_flags & ECORE_EVENT_FLAG_CANCEL)
+     {
+        SECURE_LOGD("%s key is cancelled.", ev->key);
+        return ECORE_CALLBACK_PASS_ON;
+     }
 
    if (g_disable_show_panel == EINA_TRUE)
      return ECORE_CALLBACK_PASS_ON;