Do not show context menu if context menu is shown after scrolling from doesn't have...
authorTaeyun An <ty.an@samsung.com>
Fri, 14 Jun 2013 08:52:02 +0000 (17:52 +0900)
committerTaeyun An <ty.an@samsung.com>
Wed, 19 Jun 2013 08:12:03 +0000 (17:12 +0900)
[Title] Do not show context menu if context menu is shown from doesn't have selection range in editable contents
[Issue#] P130608-1712
[Problem] Context menu is shown after scrolling from doesn't have selection range in editable contents
[Cause] Before that action is concept of textselection
[Solution] Do not show context menu if context menu is shown after scrolling from doesn't have selection range in editable contents.

Change-Id: I197824813d6289b7161375657d3cbf6828c31d15

Source/WebKit2/UIProcess/API/efl/tizen/TextSelection.cpp

index 6d81a92..306e1ae 100644 (file)
@@ -432,6 +432,10 @@ void TextSelection::updateHandlesAndContextMenu(bool isShow, bool isScrolling)
         return;
     }
 
+    EditorState editorState = m_viewImpl->page()->editorState();
+    if (!editorState.selectionIsRange && editorState.isContentEditable)
+        setIsTextSelectionMode(false);
+
     if (isShow) {
 #if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD)
         if (m_viewImpl->pageClient->isClipboardWindowOpened())