Do not hide keypad when webview has not focus
authorSangYong Park <sy302.park@samsung.com>
Fri, 3 May 2013 09:31:48 +0000 (18:31 +0900)
committerSangYong Park <sy302.park@samsung.com>
Mon, 6 May 2013 05:44:12 +0000 (14:44 +0900)
[Title] Do not hide keypad when webview has not focus
[Issue#] N_SE-37413
[Problem] Keypad did hiding when editor state was changed
[Cause] Do not check webview focus
[Solution] Hide keypad if webview has focus

Change-Id: I2964d8a79a35db1afd364c6b6184140b5b0e77ec

Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp

index 9cfdc63..60c4e5e 100755 (executable)
@@ -592,7 +592,8 @@ void InputMethodContextEfl::hideIMFContext()
 
     m_focused = false;
 
-    if (ecore_imf_context_input_panel_state_get(m_context.get()) != ECORE_IMF_INPUT_PANEL_STATE_HIDE) {
+    if (ecore_imf_context_input_panel_state_get(m_context.get()) != ECORE_IMF_INPUT_PANEL_STATE_HIDE
+        && evas_object_focus_get(m_viewImpl->view())) {
         ecore_imf_context_reset(m_context.get());
         ecore_imf_context_input_panel_hide(m_context.get());
         ecore_imf_context_focus_out(m_context.get());