Fix bug that no way to show IME after generating key event in wearable 96/234396/1
authorInHong Han <inhong1.han@samsung.com>
Tue, 26 May 2020 02:54:47 +0000 (11:54 +0900)
committerInHong Han <inhong1.han@samsung.com>
Tue, 26 May 2020 05:10:12 +0000 (05:10 +0000)
In wearable, IME will be shown after focus out and focus in again.

Change-Id: I73856980ab1243d358acfde848643ad98f726f80
(cherry picked from commit f53d886a19c7b17d8cd1eeec6c7c9296b29ededb)

src/e_mod_main.c
src/e_mod_main.h

index 11ced63..abea124 100644 (file)
@@ -1237,7 +1237,7 @@ _e_text_input_deactivate(E_Text_Input *text_input, E_Input_Method *input_method,
         if (text_input->resource)
           wl_text_input_send_leave(text_input->resource);
 
-        if (_TV)
+        if (_TV || _WEARABLE)
           g_disable_show_panel = EINA_FALSE;
      }
 }
@@ -1313,7 +1313,7 @@ _e_text_input_cb_activate(struct wl_client *client, struct wl_resource *resource
           wl_input_method_send_activate(input_method->resource, context->resource, text_input->id, EINA_TRUE);
      }
 
-   if (_TV)
+   if (_TV || _WEARABLE)
      set_soft_keyboard_mode();
 
    if (text_input->resource)
index 1ad4a2a..ddf93a5 100644 (file)
@@ -36,6 +36,7 @@ typedef enum {
 extern tizen_profile_t _get_tizen_profile();
 
 #define _TV (_get_tizen_profile() == TIZEN_PROFILE_TV)
+#define _WEARABLE (_get_tizen_profile() == TIZEN_PROFILE_WEARABLE)
 
 #if defined(_TV)
 #ifdef LOGD