Copy and paste action menu items don't work on the Mozilla Midas demo in WebKit1
[WebKit-https.git] / Source / WebKit / mac / WebView / WebActionMenuController.mm
index 1032e7c..49b33c6 100644 (file)
@@ -589,7 +589,7 @@ static NSString *pathToPhotoOnDisk(NSString *suggestedFilename)
 
 - (void)_copySelection:(id)sender
 {
-    [_webView _executeCoreCommandByName:@"copy" value:nil];
+    [_webView copy:self];
 }
 
 - (void)_lookupText:(id)sender
@@ -604,7 +604,7 @@ static NSString *pathToPhotoOnDisk(NSString *suggestedFilename)
 
 - (void)_paste:(id)sender
 {
-    [_webView _executeCoreCommandByName:@"paste" value:nil];
+    [_webView paste:self];
 }
 
 - (void)_selectLookupText