| Summary: | [iOS] Add support for deleteFromInputWithFlags | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Enrica Casucci <enrica> | ||||
| Component: | WebKit Misc. | Assignee: | Enrica Casucci <enrica> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | ddkilzer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=158323 | ||||||
| Attachments: |
|
||||||
|
Description
Enrica Casucci
2015-02-03 15:46:58 PST
Created attachment 245981 [details]
Patch
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? > Is the new call gonna link?
>
Yes, I added it at the top of the file for staging.
This landed long ago in r179580: <http://trac.webkit.org/r179580> |