IME show properly after disappear the clipboard.
authorTaeyun An <ty.an@samsung.com>
Mon, 6 May 2013 14:15:24 +0000 (23:15 +0900)
committerGerrit Code Review <gerrit2@kim11>
Tue, 7 May 2013 08:28:19 +0000 (17:28 +0900)
[Title] IME show properly after disappear the clipboard.
[Issue#] N_SE-36402
[Problem] Clipboard disappearing properly but keyboard does not appear after tap on Entry text field in TizenWinset
[Cause] IME show blocking codes are existing while opening CBHM window.
[Solution] Remove blocking codes.

Change-Id: I223c755de362cf911fafdc68493768ca003778c6

Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp

index 60c4e5e..d810116 100755 (executable)
@@ -328,9 +328,13 @@ void InputMethodContextEfl::updateTextInputState()
     if (editor.shouldIgnoreCompositionSelectionChange)
         return;
 
-    if (editor.isContentEditable && m_useInputMethod)
+    if (editor.isContentEditable && m_useInputMethod) {
+#if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD)
+        if (m_viewImpl->pageClient->isClipboardWindowOpened())
+            m_viewImpl->pageClient->closeClipboardWindow();
+#endif
         showIMFContext(editor);
-    else
+    else
         hideIMFContext();
 
     if (m_context)
@@ -537,13 +541,6 @@ void InputMethodContextEfl::showIMFContext(const EditorState& editor)
 #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) {