[WK2] selection does not disappear after coping the text
authorprathmesh.m <prathmesh.m@samsung.com>
Mon, 10 Sep 2012 07:58:06 +0000 (16:58 +0900)
committerprathmesh.m <prathmesh.m@samsung.com>
Mon, 10 Sep 2012 07:58:06 +0000 (16:58 +0900)
[Version] N/A
[Project] N/A
[Title] Fix for clearing the selection after coping the text
[BinType] N/A
[Customer] N/A
[Issue#] N_SE-8601
[Problem] Selection was not getting cleared after coping the text
[Cause] selection is not cleared
[Solution] added code to clear the selection after copy only
[Team] Browser(WCS)
[Developer] Prathmesh.m
[Request] N/A
[Horizontal expansion] N/A
[SCMRequest] N/A

Change-Id: I8f65924c9a7950230b9e56b8de3ca380bbe32c6e

Source/WebCore/page/ContextMenuController.cpp

index e07dc95..fd8952a 100644 (file)
@@ -312,9 +312,14 @@ void ContextMenuController::contextMenuItemSelected(ContextMenuItem* item)
             openNewWindow(loader->url(), frame);
         break;
     }
-    case ContextMenuItemTagCopy:
+    case ContextMenuItemTagCopy: {
         frame->editor()->copy();
+#if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
+        if (frame->selection())
+            frame->editor()->command("Unselect").execute();
+#endif
         break;
+    }
     case ContextMenuItemTagGoBack:
         if (Page* page = frame->page())
             page->backForward()->goBackOrForward(-1);