Changeset 238033 in webkit
- Timestamp:
- Nov 9, 2018 9:06:50 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r238030 r238033 1 2018-11-09 Daniel Bates <dabates@apple.com> 2 3 [iOS] Pressing forward delete key in text field does nothing and we should not invoke an editor 4 action when forward delete is pressed outside a text field 5 https://bugs.webkit.org/show_bug.cgi?id=190566 6 <rdar://problem/45262367> 7 8 Reviewed by Wenson Hsieh. 9 10 Add a test to ensure that pressing the forward delete key deletes the next character. 11 12 * fast/events/ios/forward-delete-in-editable-expected.txt: Added. 13 * fast/events/ios/forward-delete-in-editable.html: Added. 14 1 15 2018-11-09 Carlos Garcia Campos <cgarcia@igalia.com> 2 16 -
trunk/Source/WebKit/ChangeLog
r238020 r238033 1 2018-11-09 Daniel Bates <dabates@apple.com> 2 3 [iOS] Pressing forward delete key in text field does nothing and we should not invoke an editor 4 action when forward delete is pressed outside a text field 5 https://bugs.webkit.org/show_bug.cgi?id=190566 6 <rdar://problem/45262367> 7 8 Reviewed by Wenson Hsieh. 9 10 Override -_deleteForwardAndNotify to perform a forward deletion and remove the dead code that 11 expected UIKit to send us a character string with 0xF728 for the forward delete key. UIKit 12 ceased doing this many years ago. We may revist this decision once <rdar://problem/45772078> 13 is fixed. 14 15 * UIProcess/ios/WKContentViewInteraction.mm: 16 (-[WKContentView _interpretKeyEvent:isCharEvent:]): 17 (-[WKContentView _deleteForwardAndNotify:]): 18 1 19 2018-11-08 Wenson Hsieh <wenson_hsieh@apple.com> 2 20 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r237945 r238033 3824 3824 static const unsigned kWebReturnKey = 0x000D; 3825 3825 static const unsigned kWebDeleteKey = 0x007F; 3826 static const unsigned kWebDeleteForwardKey = 0xF728;3827 3826 static const unsigned kWebSpaceKey = 0x20; 3828 3827 … … 3869 3868 break; 3870 3869 3871 case kWebDeleteForwardKey:3872 _page->executeEditCommand("deleteForward"_s);3873 return YES;3874 3875 3870 default: 3876 3871 if (contentEditable && isCharEvent) { … … 3941 3936 { 3942 3937 [self executeEditCommandWithCallback:@"deleteToEndOfLine"]; 3938 } 3939 3940 - (void)_deleteForwardAndNotify:(BOOL)notify 3941 { 3942 [self executeEditCommandWithCallback:@"deleteForward"]; 3943 3943 } 3944 3944 -
trunk/Source/WebKitLegacy/mac/ChangeLog
r238014 r238033 1 2018-11-09 Daniel Bates <dabates@apple.com> 2 3 [iOS] Pressing forward delete key in text field does nothing and we should not invoke an editor 4 action when forward delete is pressed outside a text field 5 https://bugs.webkit.org/show_bug.cgi?id=190566 6 <rdar://problem/45262367> 7 8 Reviewed by Wenson Hsieh. 9 10 Remove dead code. UIKit ceased sending us a character string with 0xF728 for the forward delete 11 key many years ago. We will need to fix up iOS Legacy WebKit support for the forward delete key 12 in UIKit. We may revist this decision once <rdar://problem/45772078> is fixed. 13 14 * WebView/WebHTMLView.mm: 15 (-[WebHTMLView _handleEditingKeyEvent:]): 16 1 17 2018-11-08 Megan Gardner <megan_gardner@apple.com> 2 18 -
trunk/Source/WebKitLegacy/mac/WebView/WebHTMLView.mm
r237738 r238033 6055 6055 #define kWebReturnKey 0x000d 6056 6056 #define kWebDeleteKey 0x007F 6057 #define kWebDeleteForwardKey 0xF7286058 6057 6059 6058 - (BOOL)_handleEditingKeyEvent:(KeyboardEvent *)wcEvent … … 6090 6089 } 6091 6090 break; 6092 case kWebDeleteForwardKey:6093 [self deleteForward:self];6094 return YES;6095 6091 default: 6096 6092 if (platformEvent->type() == PlatformKeyboardEvent::Char) {
Note: See TracChangeset
for help on using the changeset viewer.