From 56ac437ba80c2c4d388addf7eb71659218edb807 Mon Sep 17 00:00:00 2001 From: SangYong Park Date: Thu, 5 Sep 2013 11:29:41 +0900 Subject: [PATCH] Remove unnecessary condition for hiding keypad [Title] Remove unnecessary condition for hiding keypad [Issue#] N_SE-50951 [Problem] Keypad did not hide when edit field remove focus quickly. [Cause] Keypad state is not seen yet. [Solution] Remove checking state condition. Change-Id: I68cb6b73c35199ba905e48792855d10b56d349bd --- Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp b/Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp index 86ac060..11a6a28 100755 --- a/Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp +++ b/Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp @@ -437,7 +437,7 @@ void InputMethodContextEfl::updateTextInputState() else hideIMFContext(); - if (m_context) + if (m_context && !editor.hasComposition) ecore_imf_context_cursor_position_set(m_context.get(), editor.cursorPosition); } @@ -757,8 +757,7 @@ void InputMethodContextEfl::hideIMFContext() if (!m_context || !m_focused) return; - if (ecore_imf_context_input_panel_state_get(m_context.get()) != ECORE_IMF_INPUT_PANEL_STATE_HIDE - && evas_object_focus_get(m_viewImpl->view())) { + if (evas_object_focus_get(m_viewImpl->view())) { resetIMFContext(); ecore_imf_context_input_panel_hide(m_context.get()); ecore_imf_context_focus_out(m_context.get()); -- 2.7.4