Revert "Change the keyboard mode rule on focus-in event" 64/173164/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Tue, 20 Mar 2018 02:04:08 +0000 (11:04 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Tue, 20 Mar 2018 02:04:29 +0000 (11:04 +0900)
This reverts commit 6f8295aae8778d5fc9b8abfe15a9db7013017aef.

Change-Id: Ib8bb4ab1f6db3387c75351559d422e73962d170a

ism/extras/wayland_immodule/wayland_imcontext.c

index 6463f1d..dabe019 100644 (file)
@@ -2808,8 +2808,6 @@ _prediction_hint_data_foreach_cb(const Eina_Hash *hash, const void *key,
 void
 wayland_im_context_focus_in(Ecore_IMF_Context *ctx)
 {
-    Eina_Bool focused = g_focused;
-
     LOGD ("ctx : %p. enable : %d, on demand : %d", ctx,
           ecore_imf_context_input_panel_enabled_get(ctx),
           ecore_imf_context_input_panel_show_on_demand_get (ctx));
@@ -2834,8 +2832,7 @@ wayland_im_context_focus_in(Ecore_IMF_Context *ctx)
     }
 
     if (_TV) {
-        // Set to SW keyboard mode only when the focus state is changed from OUT to IN.
-        if (!focused && hw_keyboard_mode == EINA_TRUE) {
+        if (hw_keyboard_mode == EINA_TRUE) {
             vconf_set_bool (VCONFKEY_ISF_HW_KEYBOARD_INPUT_DETECTED, 0);
             hw_keyboard_mode = EINA_FALSE;
         }