From 1333f417754e2428a92b5403d608daf9823ee928 Mon Sep 17 00:00:00 2001 From: "prathmesh.m" Date: Mon, 10 Sep 2012 16:58:06 +0900 Subject: [PATCH] [WK2] selection does not disappear after coping the text [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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/WebCore/page/ContextMenuController.cpp b/Source/WebCore/page/ContextMenuController.cpp index e07dc95..fd8952a 100644 --- a/Source/WebCore/page/ContextMenuController.cpp +++ b/Source/WebCore/page/ContextMenuController.cpp @@ -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); -- 2.7.4