Prevent sending IME show request in hw keyboard mode 74/126574/3
authorJi-hoon Lee <dalton.lee@samsung.com>
Mon, 24 Apr 2017 07:42:23 +0000 (16:42 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 28 Apr 2017 10:52:48 +0000 (10:52 +0000)
Change-Id: I1c81e38f31c8f32c32d630636dd8fcc5b1be4a22

ism/extras/wayland_immodule/wayland_imcontext.c

index 33bcaca..3da61cf 100644 (file)
@@ -1621,7 +1621,6 @@ show_input_panel(Ecore_IMF_Context *ctx)
     //
 
     // TIZEN_ONLY(20150715): Support input_panel_state_get
-    _input_panel_state = ECORE_IMF_INPUT_PANEL_STATE_WILL_SHOW;
     int layout = ecore_imf_context_input_panel_layout_get (ctx);
     int layout_variation = ecore_imf_context_input_panel_layout_variation_get (ctx);
     //
@@ -1675,6 +1674,13 @@ show_input_panel(Ecore_IMF_Context *ctx)
     }
     //
 
+    if (hw_keyboard_mode) {
+        LOGD("hw_keyboard_mode is TRUE, returning");
+        return EINA_FALSE;
+    }
+
+    _input_panel_state = ECORE_IMF_INPUT_PANEL_STATE_WILL_SHOW;
+
     wl_text_input_show_input_panel(imcontext->text_input);
 
     return EINA_TRUE;