Changeset 245644 in webkit
- Timestamp:
- May 22, 2019 1:58:32 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r245642 r245644 1 2019-05-22 Daniel Bates <dabates@apple.com> 2 3 WebKit does not generate an ESC key event for CMD+. 4 https://bugs.webkit.org/show_bug.cgi?id=198137 5 <rdar://problem/51038641> 6 7 Reviewed by Brent Fulgham. 8 9 This patch maps the Command + '.' keystroke to the 'Escape'. This also requires a change to UIKit to properly pass 10 the key state to WebKit (see <rdar://problem/46431552>). 11 12 * platform/ios/WebEvent.mm: 13 (-[WebEvent initWithKeyEventType:timeStamp:characters:charactersIgnoringModifiers:modifiers:isRepeating:withFlags:withInputManagerHint:keyCode:isTabKey:]): 14 1 15 2019-05-22 Ali Juma <ajuma@chromium.org> 2 16 -
trunk/Source/WebCore/platform/ios/WebEvent.mm
r242915 r245644 194 194 195 195 if (!(_keyboardFlags & WebEventKeyboardInputModifierFlagsChanged)) { 196 // Map Command + . to Escape since Apple Smart Keyboards lack an Escape key. 197 if ([charactersIgnoringModifiers isEqualToString:@"."] && (modifiers & WebEventFlagMaskCommandKey)) { 198 keyCode = kHIDUsage_KeyboardEscape; 199 _modifierFlags &= ~WebEventFlagMaskCommandKey; 200 } 196 201 _characters = [normalizedStringWithAppKitCompatibilityMapping(characters, keyCode) retain]; 197 202 _charactersIgnoringModifiers = [normalizedStringWithAppKitCompatibilityMapping(charactersIgnoringModifiers, keyCode) retain];
Note: See TracChangeset
for help on using the changeset viewer.