Clear composition when keypad disappear
[framework/web/webkit-efl.git] / Source / WebKit2 / UIProcess / efl / InputMethodContextEfl.cpp
index 8506a91..fab2b9e 100755 (executable)
@@ -118,6 +118,10 @@ void InputMethodContextEfl::onIMFInputPanelStateChanged(void* data, Ecore_IMF_Co
         if (inputMethodContext->m_viewImpl->pageClient->isClipboardWindowOpened())
             inputMethodContext->m_viewImpl->pageClient->closeClipboardWindow();
 #endif
+
+        if (inputMethodContext->m_viewImpl->page()->editorState().hasComposition)
+            inputMethodContext->resetIMFContext();
+
         evas_object_smart_callback_call(inputMethodContext->m_viewImpl->view(), "editorclient,ime,closed", 0);
     } else if (state == ECORE_IMF_INPUT_PANEL_STATE_SHOW)
         evas_object_smart_callback_call(inputMethodContext->m_viewImpl->view(), "editorclient,ime,opened", 0);