void InputMethodContextEfl::onFocusOut()
{
- if (!m_context || !m_focused)
- return;
-
#if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD)
if (m_state != ECORE_IMF_INPUT_PANEL_STATE_SHOW) {
if (m_viewImpl->pageClient->isClipboardWindowOpened())
}
#endif
+ if (!m_context || !m_focused)
+ return;
+
ecore_imf_context_input_panel_hide(m_context.get());
ecore_imf_context_focus_out(m_context.get());
}
void InputMethodContextEfl::hideIMFContext()
{
- if (!m_context || !m_focused)
- return;
-
#if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD)
if (m_state != ECORE_IMF_INPUT_PANEL_STATE_SHOW) {
if (m_viewImpl->pageClient->isClipboardWindowOpened())
}
#endif
+ if (!m_context || !m_focused)
+ return;
+
if (m_viewImpl->page()->editorState().hasComposition)
m_viewImpl->page()->cancelComposition();