Title: [237945] trunk/Source/WebKit
Revision
237945
Author
dba...@webkit.org
Date
2018-11-07 14:14:21 -0800 (Wed, 07 Nov 2018)

Log 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.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (237944 => 237945)


--- trunk/Source/WebKit/ChangeLog	2018-11-07 22:12:42 UTC (rev 237944)
+++ trunk/Source/WebKit/ChangeLog	2018-11-07 22:14:21 UTC (rev 237945)
@@ -1,5 +1,20 @@
 2018-11-07  Daniel Bates  <daba...@apple.com>
 
+        [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.
+
+2018-11-07  Daniel Bates  <daba...@apple.com>
+
         [iOS] Option + Delete should delete previous word
         https://bugs.webkit.org/show_bug.cgi?id=191381
         <rdar://problem/23681351>

Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (237944 => 237945)


--- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm	2018-11-07 22:12:42 UTC (rev 237944)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm	2018-11-07 22:14:21 UTC (rev 237945)
@@ -3932,6 +3932,16 @@
     [self executeEditCommandWithCallback:@"deleteWordBackward"];
 }
 
+- (void)_deleteToStartOfLine
+{
+    [self executeEditCommandWithCallback:@"deleteToBeginningOfLine"];
+}
+
+- (void)_deleteToEndOfLine
+{
+    [self executeEditCommandWithCallback:@"deleteToEndOfLine"];
+}
+
 - (UITextInputArrowKeyHistory *)_moveUp:(BOOL)extending withHistory:(UITextInputArrowKeyHistory *)history
 {
     [self executeEditCommandWithCallback:extending ? @"moveUpAndModifySelection" : @"moveUp"];
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to