Fixed left/right text selection handle is not moved smoothly in case that host keyboa...
authorYuni Jeong <yhnet.jung@samsung.com>
Wed, 24 Apr 2013 12:06:07 +0000 (21:06 +0900)
committerGerrit Code Review <gerrit2@kim11>
Thu, 25 Apr 2013 09:05:19 +0000 (18:05 +0900)
[Title] Fixed left/right text selection handle is not moved smoothly in case that host keyboard is used.
[Issue#] N/A
[Problem] Left/Right text selection handle is not moved smoothly in case that host keyboard is used.
[Cause] Because showIMFContext() function is called.
[Solution] If "isTextSelectionMode() && isTextSelectionHandleDowned()" is true,
           added routine to return for preventing from calling showIMFContext() function.

Change-Id: I5c7e71ab329d84b2202c875ebb81b29537f5409c

Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp

index 2d4ee7c..b1c6b2d 100755 (executable)
@@ -719,13 +719,15 @@ void PageClientImpl::countStringMatchesInCustomRepresentation(const String&, Fin
 
 void PageClientImpl::updateTextInputState()
 {
-    InputMethodContextEfl* inputMethodContext = m_viewImpl->inputMethodContext();
-    if (inputMethodContext)
-        inputMethodContext->updateTextInputState();
-
 #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
     m_textSelection->update();
+    if (isTextSelectionMode() && isTextSelectionHandleDowned())
+        return;
 #endif
+
+    InputMethodContextEfl* inputMethodContext = m_viewImpl->inputMethodContext();
+    if (inputMethodContext)
+        inputMethodContext->updateTextInputState();
 }
 
 void PageClientImpl::handleDownloadRequest(DownloadProxy* download)