Prevent to hide IME in case of pressing cancel key 12/238712/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 16 Jul 2020 11:15:39 +0000 (20:15 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 16 Jul 2020 11:18:24 +0000 (20:18 +0900)
Change-Id: I8d7f60f969e35188de0fe3f00f981a017443f9d5
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_mod_main.c

index 8a7c723..ca8ab55 100644 (file)
@@ -1185,9 +1185,12 @@ _e_mod_ecore_key_down_cb(void *data, int type, void *event)
        !strcmp(ev->key, "Pause") ||
        !strcmp(ev->key, "NoSymbol") ||
        !strncmp(ev->key, "XF86", 4) ||
+       !strncmp(ev->key, "Cancel", 5) ||
        (is_number_key(ev->string) && _TV))
      return ECORE_CALLBACK_PASS_ON;
 
+   SECURE_LOGD("Hide IME (key : %s)", ev->key);
+
    if (g_text_input && g_text_input->resource && g_client)
      _input_panel_hide(g_client, g_text_input->resource, EINA_FALSE);