[WK2] Fix for not displaying of paste menu on edit field context
authorprathmesh.m <prathmesh.m@samsung.com>
Fri, 31 Aug 2012 05:02:37 +0000 (14:02 +0900)
committerprathmesh.m <prathmesh.m@samsung.com>
Fri, 31 Aug 2012 05:02:37 +0000 (14:02 +0900)
[Version] N/A
[Project] N/A
[Title] fails to "paste" the "cut"ed text ,"paste" option not displaying
for blank form fields.
[BinType] N/A
[Customer] N/A
[Issue#] WEB-1082
[Problem] paste was not displayed after selecting cut in editbox
[Cause] page pointer in pasteboard is null when cut is selected before
copy is selected
[Solution] assigned page pointer as its assigned in case of copy
[Team] Browser(WCS)
[Developer] Prathmesh.m
[Request] N/A
[Horizontal expansion] N/A
[SCMRequest] N/A

Change-Id: Iac9b14c7032aa1b2662296b9c195cdd59377411e

Source/WebCore/page/ContextMenuController.cpp

index c27553b..ffbed1e 100644 (file)
@@ -237,7 +237,8 @@ void ContextMenuController::contextMenuItemSelected(ContextMenuItem* item)
             || item->action() == ContextMenuItemTagCopyImageToClipboard
             || item->action() == ContextMenuItemTagCopyImageUrlToClipboard
             || item->action() == ContextMenuItemTagCopyMediaLinkToClipboard
-            || item->action() == ContextMenuItemTagCopy)
+            || item->action() == ContextMenuItemTagCopy
+            || item->action() == ContextMenuItemTagCut)
             Pasteboard::generalPasteboard()->setPage(page);
     }
 #endif