From: InHong Han Date: Tue, 26 May 2020 02:54:47 +0000 (+0900) Subject: Fix bug that no way to show IME after generating key event in wearable X-Git-Tag: submit/tizen/20200527.015345~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F96%2F234396%2F1;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wl-textinput.git Fix bug that no way to show IME after generating key event in wearable In wearable, IME will be shown after focus out and focus in again. Change-Id: I73856980ab1243d358acfde848643ad98f726f80 (cherry picked from commit f53d886a19c7b17d8cd1eeec6c7c9296b29ededb) --- diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 11ced63..abea124 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -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) diff --git a/src/e_mod_main.h b/src/e_mod_main.h index 1ad4a2a..ddf93a5 100644 --- a/src/e_mod_main.h +++ b/src/e_mod_main.h @@ -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