Changeset 246795 in webkit


Ignore:
Timestamp:
Jun 25, 2019 10:29:53 AM (5 years ago)
Author:
timothy_horton@apple.com
Message:

When Caps Lock is enabled on the Smart Keyboard, can't scroll with space or arrow keys
https://bugs.webkit.org/show_bug.cgi?id=199187
<rdar://problem/51521709>

Reviewed by Anders Carlsson.

  • UIProcess/ios/WKKeyboardScrollingAnimator.mm:

(-[WKKeyboardScrollingAnimator keyboardScrollForEvent:]):
When deciding whether a key event should start a scroll, ignore all
modifiers other than the ones we actually care about (including Caps Lock).

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r246790 r246795  
     12019-06-25  Tim Horton  <timothy_horton@apple.com>
     2
     3        When Caps Lock is enabled on the Smart Keyboard, can't scroll with space or arrow keys
     4        https://bugs.webkit.org/show_bug.cgi?id=199187
     5        <rdar://problem/51521709>
     6
     7        Reviewed by Anders Carlsson.
     8
     9        * UIProcess/ios/WKKeyboardScrollingAnimator.mm:
     10        (-[WKKeyboardScrollingAnimator keyboardScrollForEvent:]):
     11        When deciding whether a key event should start a scroll, ignore all
     12        modifiers other than the ones we actually care about (including Caps Lock).
     13
    1142019-06-25  Michael Catanzaro  <mcatanzaro@igalia.com>
    215
  • trunk/Source/WebKit/UIProcess/ios/WKKeyboardScrollingAnimator.mm

    r245832 r246795  
    244244    }();
    245245
    246     if (event.modifierFlags & ~allowedModifiers)
     246    auto relevantModifierFlags = WebEventFlagMaskOptionKey | WebEventFlagMaskCommandKey | WebEventFlagMaskShiftKey;
     247    if (event.modifierFlags & relevantModifierFlags & ~allowedModifiers)
    247248        return WTF::nullopt;
    248249
Note: See TracChangeset for help on using the changeset viewer.