Changeset 237943 in webkit


Ignore:
Timestamp:
Nov 7, 2018 2:11:59 PM (5 years ago)
Author:
dbates@webkit.org
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]):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r237935 r237943  
     12018-11-07  Daniel Bates  <dabates@apple.com>
     2
     3        [iOS] Option + Delete should delete previous word
     4        https://bugs.webkit.org/show_bug.cgi?id=191381
     5        <rdar://problem/23681351>
     6
     7        Reviewed by Wenson Hsieh.
     8
     9        Implement support for pressing Option + Delete to delete the previous word. This makes text editing
     10        in WebKit more closely match the platform conventions.
     11
     12        * UIProcess/ios/WKContentViewInteraction.mm:
     13        (-[WKContentView _deleteByWord]):
     14
    1152018-11-07  Daniel Bates  <dabates@apple.com>
    216
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r237935 r237943  
    39283928}
    39293929
     3930- (void)_deleteByWord
     3931{
     3932    [self executeEditCommandWithCallback:@"deleteWordBackward"];
     3933}
     3934
    39303935- (UITextInputArrowKeyHistory *)_moveUp:(BOOL)extending withHistory:(UITextInputArrowKeyHistory *)history
    39313936{
Note: See TracChangeset for help on using the changeset viewer.