Handle key event cancel flag 21/238721/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:56:49 +0000 (20:56 +0900)
Change-Id: I4449fa21990429db04339d389e4f97128ba77516
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_mod_main.c

index 6b4c81a..44647a2 100644 (file)
@@ -1176,6 +1176,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;