RESOLVED FIXED 239320
[iOS] Add support for find-and-replace keyboard shortcut
https://bugs.webkit.org/show_bug.cgi?id=239320
Summary [iOS] Add support for find-and-replace keyboard shortcut
Aditya Keerthi
Reported 2022-04-13 21:16:05 PDT
...
Attachments
Patch (3.34 KB, patch)
2022-04-13 21:18 PDT, Aditya Keerthi
no flags
Aditya Keerthi
Comment 1 2022-04-13 21:16:25 PDT
Aditya Keerthi
Comment 2 2022-04-13 21:18:59 PDT
Aditya Keerthi
Comment 3 2022-04-14 10:34:51 PDT
Comment on attachment 457592 [details] Patch Thanks for the review!
EWS
Comment 4 2022-04-14 11:01:55 PDT
Committed r292880 (249650@main): <https://commits.webkit.org/249650@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 457592 [details].
Darin Adler
Comment 5 2022-04-14 11:07:03 PDT
Comment on attachment 457592 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=457592&action=review > Source/WebKit/UIProcess/API/ios/WKWebViewIOS.h:136 > - (void)find:(id)sender; > - (void)findNext:(id)sender; > - (void)findPrevious:(id)sender; > +- (void)findAndReplace:(id)sender; Should these be public API with availability annotations? I don’t understand why they are still internal.
Aditya Keerthi
Comment 6 2022-04-14 12:00:54 PDT
(In reply to Darin Adler from comment #5) > Comment on attachment 457592 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=457592&action=review > > > Source/WebKit/UIProcess/API/ios/WKWebViewIOS.h:136 > > - (void)find:(id)sender; > > - (void)findNext:(id)sender; > > - (void)findPrevious:(id)sender; > > +- (void)findAndReplace:(id)sender; > > Should these be public API with availability annotations? I don’t understand > why they are still internal. Good question! These methods are specifically for editing shortcuts / menu items through the UIKit protocol `UIResponderStandardEditActions`. They are currently in a private UIKit header, and are declared here for use in WebKit. Once they are moved to a public header, we will no longer declare them here. Note that `WKWebView` does not publicly conform to `UIResponderStandardEditActions` at this time. This is a historical artifact, and there's not a good reason for keeping it that away. I've filed https://bugs.webkit.org/show_bug.cgi?id=239349 to make conformance to UIKit's protocol public. The actual functionality of these methods (being able to find/replace) will be API through `findInteraction`. This is independent of public conformance to `UIResponderStandardEditActions`, which is specifically for editing shortcuts / menu items.
Note You need to log in before you can comment on or make changes to this bug.