+2014-12-10 Timothy Horton <timothy_horton@apple.com>
+
+ Copy and paste action menu items don't work on the Mozilla Midas demo in WebKit1
+ https://bugs.webkit.org/show_bug.cgi?id=139529
+ <rdar://problem/19213620>
+
+ Reviewed by Beth Dakin.
+
+ * WebView/WebActionMenuController.mm:
+ (-[WebActionMenuController _copySelection:]):
+ (-[WebActionMenuController _paste:]):
+ Use the copy: and paste: methods on WebView so that we traverse subviews
+ when trying to respond, otherwise these actions don't work in subframes.
+
2014-12-10 Beth Dakin <bdakin@apple.com>
WK1: Add initial support for immediate actions
- (void)_copySelection:(id)sender
{
- [_webView _executeCoreCommandByName:@"copy" value:nil];
+ [_webView copy:self];
}
- (void)_lookupText:(id)sender
- (void)_paste:(id)sender
{
- [_webView _executeCoreCommandByName:@"paste" value:nil];
+ [_webView paste:self];
}
- (void)_selectLookupText