From: prathmesh.m Date: Mon, 10 Sep 2012 07:58:06 +0000 (+0900) Subject: [WK2] selection does not disappear after coping the text X-Git-Tag: 2.0_alpha~7^2 X-Git-Url: http://review.tizen.org/git/?p=framework%2Fweb%2Fwebkit-efl.git;a=commitdiff_plain;h=1333f417754e2428a92b5403d608daf9823ee928;hp=a6e95dc5d6bc8ebacfb94214b2f341c18ec7ae79 [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 --- 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);