InputMethodContextEfl* inputMethodContext = static_cast<InputMethodContextEfl*>(data);
if (state == ECORE_IMF_INPUT_PANEL_STATE_HIDE) {
+#if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD)
+ if (inputMethodContext->m_viewImpl->pageClient->isClipboardWindowOpened())
+ inputMethodContext->m_viewImpl->pageClient->closeClipboardWindow();
+#endif
evas_object_smart_callback_call(inputMethodContext->m_viewImpl->view(), "editorclient,ime,closed", 0);
if (inputMethodContext->m_context)
evas_object_focus_set(inputMethodContext->m_viewImpl->view(), false);
Ewk_Settings* settings = ewk_view_settings_get(m_viewImpl->view());
bool defaultKeypadEnabled = ewk_settings_default_keypad_enabled_get(settings);
-#if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD)
- if (m_viewImpl->pageClient->isClipboardWindowOpened()) {
- LOG(ISF, "[FAIL] Clipboard\n");
- return;
- }
-#endif
-
#if ENABLE(TIZEN_INPUT_TAG_EXTENSION)
if (editor.inputMethodHints == "date") {
ewkViewInputPickerRequest(m_viewImpl->view(), EWK_INPUT_TYPE_DATE, editor.surroundingText);
#endif
#endif // ENABLE(TIZEN_INPUT_TAG_EXTENSION)
+#if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD)
+ if (m_viewImpl->pageClient->isClipboardWindowOpened()) {
+ LOG(ISF, "[FAIL] Clipboard\n");
+ return;
+ }
+#endif
+
bool hasFocus = evas_object_focus_get(m_viewImpl->view());
if (!defaultKeypadEnabled) {
if (!m_context)
return;
-#if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD)
- if (m_viewImpl->pageClient->isClipboardWindowOpened())
- m_viewImpl->pageClient->closeClipboardWindow();
-#endif
-
if (ecore_imf_context_input_panel_state_get(m_context.get()) != ECORE_IMF_INPUT_PANEL_STATE_HIDE) {
ecore_imf_context_reset(m_context.get());
ecore_imf_context_input_panel_hide(m_context.get());