Changeset 171114 in webkit


Ignore:
Timestamp:
Jul 15, 2014, 1:52:12 PM (11 years ago)
Author:
enrica@apple.com
Message:

REGRESSION(WK2 iOS): Safari hangs when switching focus from a field using the Tab key.
https://bugs.webkit.org/show_bug.cgi?id=134934
<rdar://problem/17224638>

Reviewed by Tim Horton.

  • UIProcess/ios/WKContentViewInteraction.mm:


Tab and back tab should be handled as special keys that have
a command associated. The command specifies for each key the relevant
action. This patch implements the commands property to create the association
between key and command and the relevant actions that will execute the same
code executed when the used taps on the < > buttons in the accessory bar.

(-[WKContentView keyCommands]):
(-[WKContentView _nextAccessoryTab:]):
(-[WKContentView _prevAccessoryTab:]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r171113 r171114  
     12014-07-15  Enrica Casucci  <enrica@apple.com>
     2
     3        REGRESSION(WK2 iOS): Safari hangs when switching focus from a field using the Tab key.
     4        https://bugs.webkit.org/show_bug.cgi?id=134934
     5        <rdar://problem/17224638>
     6
     7        Reviewed by Tim Horton.
     8
     9        * UIProcess/ios/WKContentViewInteraction.mm:
     10       
     11        Tab and back tab should be handled as special keys that have
     12        a command associated. The command specifies for each key the relevant
     13        action. This patch implements the commands property to create the association
     14        between key and command and the relevant actions that will execute the same
     15        code executed when the used taps on the < > buttons in the accessory bar.
     16       
     17        (-[WKContentView keyCommands]):
     18        (-[WKContentView _nextAccessoryTab:]):
     19        (-[WKContentView _prevAccessoryTab:]):
     20
    1212014-07-15  Oliver Hunt  <oliver@apple.com>
    222
  • trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r171015 r171114  
    17971797}
    17981798
     1799- (NSArray *)keyCommands
     1800{
     1801    return @[[UIKeyCommand keyCommandWithInput:@"\t" modifierFlags:0 action:@selector(_nextAccessoryTab:)],
     1802             [UIKeyCommand keyCommandWithInput:@"\t" modifierFlags:UIKeyModifierShift action:@selector(_prevAccessoryTab:)]];
     1803}
     1804
     1805- (void)_nextAccessoryTab:(id)sender
     1806{
     1807    [self accessoryTab:YES];
     1808}
     1809
     1810- (void)_prevAccessoryTab:(id)sender
     1811{
     1812    [self accessoryTab:NO];
     1813}
     1814
    17991815- (void)accessoryTab:(BOOL)isNext
    18001816{
Note: See TracChangeset for help on using the changeset viewer.