Title: [237943] trunk/Source/WebKit
Revision
237943
Author
[email protected]
Date
2018-11-07 14:11:59 -0800 (Wed, 07 Nov 2018)

Log Message

[iOS] Option + Delete should delete previous word
https://bugs.webkit.org/show_bug.cgi?id=191381
<rdar://problem/23681351>

Reviewed by Wenson Hsieh.

Implement support for pressing Option + Delete to delete the previous word. This makes text editing
in WebKit more closely match the platform conventions.

* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _deleteByWord]):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (237942 => 237943)


--- trunk/Source/WebKit/ChangeLog	2018-11-07 21:46:19 UTC (rev 237942)
+++ trunk/Source/WebKit/ChangeLog	2018-11-07 22:11:59 UTC (rev 237943)
@@ -1,5 +1,19 @@
 2018-11-07  Daniel Bates  <[email protected]>
 
+        [iOS] Option + Delete should delete previous word
+        https://bugs.webkit.org/show_bug.cgi?id=191381
+        <rdar://problem/23681351>
+
+        Reviewed by Wenson Hsieh.
+
+        Implement support for pressing Option + Delete to delete the previous word. This makes text editing
+        in WebKit more closely match the platform conventions.
+
+        * UIProcess/ios/WKContentViewInteraction.mm:
+        (-[WKContentView _deleteByWord]):
+
+2018-11-07  Daniel Bates  <[email protected]>
+
         Override +[UIKeyboard isInHardwareKeyboardMode] in WebKitTestRunner and DumpRenderTree
         https://bugs.webkit.org/show_bug.cgi?id=190141
 

Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (237942 => 237943)


--- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm	2018-11-07 21:46:19 UTC (rev 237942)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm	2018-11-07 22:11:59 UTC (rev 237943)
@@ -3927,6 +3927,11 @@
     });
 }
 
+- (void)_deleteByWord
+{
+    [self executeEditCommandWithCallback:@"deleteWordBackward"];
+}
+
 - (UITextInputArrowKeyHistory *)_moveUp:(BOOL)extending withHistory:(UITextInputArrowKeyHistory *)history
 {
     [self executeEditCommandWithCallback:extending ? @"moveUpAndModifySelection" : @"moveUp"];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to