RESOLVED FIXED 141216
[iOS] Add support for deleteFromInputWithFlags
https://bugs.webkit.org/show_bug.cgi?id=141216
Summary [iOS] Add support for deleteFromInputWithFlags
Enrica Casucci
Reported 2015-02-03 15:46:58 PST
UIKit is adopting a new way to handle delete from input. This bug track the work required in WebKit to adopt the new method.
Attachments
Patch (8.54 KB, patch)
2015-02-03 15:51 PST, Enrica Casucci
benjamin: review+
Enrica Casucci
Comment 1 2015-02-03 15:51:41 PST
Benjamin Poulain
Comment 2 2015-02-03 16:11:21 PST
Comment on attachment 245981 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=245981&action=review rs=me > Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:2420 > + // FIXME: remove deleteFromInput once UIKit adopts deleteFromInputWithFlags > + if ([[UIKeyboardImpl sharedInstance] respondsToSelector:@selector(deleteFromInputWithFlags:)]) > + [[UIKeyboardImpl sharedInstance] deleteFromInputWithFlags:event.keyboardFlags]; > + else > + [[UIKeyboardImpl sharedInstance] deleteFromInput]; Let's store the object from [UIKeyboardImpl sharedInstance] in a temp variable. Is the new call gonna link? > Source/WebKit/ios/WebView/WebUIKitDelegate.h:81 > +// FIXME: to be removed when UIKit implements the new one below. Maybe say "deleteFromInput" is to be removed? Comments tends to move in WebKit :) > Source/WebKit/mac/WebView/WebHTMLView.mm:5827 > + if ([[self _webView] respondsToSelector:@selector(deleteFromInputWithFlags:)]) [self _webView] in a temp?
Enrica Casucci
Comment 3 2015-02-03 16:13:28 PST
> Is the new call gonna link? > Yes, I added it at the top of the file for staging.
David Kilzer (:ddkilzer)
Comment 4 2016-06-02 15:51:43 PDT
This landed long ago in r179580: <http://trac.webkit.org/r179580>
David Kilzer (:ddkilzer)
Comment 5 2016-06-02 15:52:23 PDT
Note You need to log in before you can comment on or make changes to this bug.