Changeset 171114 in webkit
- Timestamp:
- Jul 15, 2014, 1:52:12 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r171113 r171114 1 2014-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 1 21 2014-07-15 Oliver Hunt <oliver@apple.com> 2 22 -
trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm
r171015 r171114 1797 1797 } 1798 1798 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 1799 1815 - (void)accessoryTab:(BOOL)isNext 1800 1816 {
Note:
See TracChangeset
for help on using the changeset viewer.