Fix the bug that IME isn't shown when the keyboard mode is changed to H/W 27/168827/1
authorInHong Han <inhong1.han@samsung.com>
Wed, 31 Jan 2018 06:58:54 +0000 (15:58 +0900)
committerInHong Han <inhong1.han@samsung.com>
Wed, 31 Jan 2018 08:03:18 +0000 (08:03 +0000)
Change-Id: Iee4af4ffebc1435d9544c2352b23d27527e8d41a
(cherry picked from commit 2c251871f6b01ef316a6f26219fae555ba60b365)

ism/extras/wayland_immodule/wayland_imcontext.c

index fd34f82..fb8dfd5 100644 (file)
@@ -2514,6 +2514,9 @@ keyboard_mode_changed_cb (keynode_t *key, void* data)
         Ecore_IMF_Input_Panel_Keyboard_Mode input_mode = hw_keyboard_mode ? ECORE_IMF_INPUT_PANEL_HW_KEYBOARD_MODE : ECORE_IMF_INPUT_PANEL_SW_KEYBOARD_MODE;
         ecore_imf_context_input_panel_event_callback_call (active_ctx, ECORE_IMF_INPUT_PANEL_KEYBOARD_MODE_EVENT, input_mode);
 
+        if (input_mode == ECORE_IMF_INPUT_PANEL_HW_KEYBOARD_MODE && _input_panel_state == ECORE_IMF_INPUT_PANEL_STATE_WILL_SHOW)
+            _input_panel_state = ECORE_IMF_INPUT_PANEL_STATE_HIDE;
+
         if ((input_mode == ECORE_IMF_INPUT_PANEL_SW_KEYBOARD_MODE) && _focused_ctx && (active_ctx == _focused_ctx)) {
             if (ecore_imf_context_input_panel_enabled_get (active_ctx)) {
                 ecore_imf_context_input_panel_show (active_ctx);