Changeset 237945 in webkit


Ignore:
Timestamp:
Nov 7, 2018 2:14:21 PM (5 years ago)
Author:
dbates@webkit.org
Message:

[iOS] Support deleting to the start of the line and to the end of the line
https://bugs.webkit.org/show_bug.cgi?id=191389
<rdar://problem/45883972>

Reviewed by Wenson Hsieh.

Add support for the key commands Command + Delete and Control + K to delete to the start
of the line and to delete to the end of the line, respectively.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView _deleteToStartOfLine]): Added.
(-[WKContentView _deleteToEndOfLine]): Added.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r237943 r237945  
     12018-11-07  Daniel Bates  <dabates@apple.com>
     2
     3        [iOS] Support deleting to the start of the line and to the end of the line
     4        https://bugs.webkit.org/show_bug.cgi?id=191389
     5        <rdar://problem/45883972>
     6
     7        Reviewed by Wenson Hsieh.
     8
     9        Add support for the key commands Command + Delete and Control + K to delete to the start
     10        of the line and to delete to the end of the line, respectively.
     11
     12        * UIProcess/ios/WKContentViewInteraction.mm:
     13        (-[WKContentView _deleteToStartOfLine]): Added.
     14        (-[WKContentView _deleteToEndOfLine]): Added.
     15
    1162018-11-07  Daniel Bates  <dabates@apple.com>
    217
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r237943 r237945  
    39333933}
    39343934
     3935- (void)_deleteToStartOfLine
     3936{
     3937    [self executeEditCommandWithCallback:@"deleteToBeginningOfLine"];
     3938}
     3939
     3940- (void)_deleteToEndOfLine
     3941{
     3942    [self executeEditCommandWithCallback:@"deleteToEndOfLine"];
     3943}
     3944
    39353945- (UITextInputArrowKeyHistory *)_moveUp:(BOOL)extending withHistory:(UITextInputArrowKeyHistory *)history
    39363946{
Note: See TracChangeset for help on using the changeset viewer.