[SCM] WebKit Debian packaging branch, debian/experimental, updated. debian/1.3.8-1-1049-g2e11a8e
weinig at apple.com
weinig at apple.com
Fri Jan 21 14:51:48 UTC 2011
The following commit has been merged in the debian/experimental branch:
commit ffe69ebbb658263f6e8199704df4b6e83a2ff291
Author: weinig at apple.com <weinig at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Jan 3 17:02:05 2011 +0000
Ensure that the correct initial focusable area is focused when tabbing
and shift-tabbing into the WKView.
Reviewed by Anders Carlsson.
* UIProcess/API/mac/WKView.mm:
(-[WKView becomeFirstResponder]): Use the keyViewSelectionDirection to set
the initial focus.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74893 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit2/ChangeLog b/WebKit2/ChangeLog
index ebf77fd..c87f2c3 100644
--- a/WebKit2/ChangeLog
+++ b/WebKit2/ChangeLog
@@ -1,3 +1,14 @@
+2011-01-03 Sam Weinig <sam at webkit.org>
+
+ Reviewed by Anders Carlsson.
+
+ Ensure that the correct initial focusable area is focused when tabbing
+ and shift-tabbing into the WKView.
+
+ * UIProcess/API/mac/WKView.mm:
+ (-[WKView becomeFirstResponder]): Use the keyViewSelectionDirection to set
+ the initial focus.
+
2011-01-02 Dan Bernstein <mitz at apple.com>
Rubber-stamped by Simon Fraser.
@@ -14,7 +25,7 @@
WebKit 2 does not build on 64bits with a recent GCC
https://bugs.webkit.org/show_bug.cgi?id=51754
- Change the argument coding for DatabaseDetails to use explicitely the 64 bits type.
+ Change the argument coding for DatabaseDetails to use explicitly the 64 bits type.
* Shared/OriginAndDatabases.h:
* Shared/WebCoreArgumentCoders.h:
diff --git a/WebKit2/UIProcess/API/mac/WKView.mm b/WebKit2/UIProcess/API/mac/WKView.mm
index b09951d..02b7c67 100644
--- a/WebKit2/UIProcess/API/mac/WKView.mm
+++ b/WebKit2/UIProcess/API/mac/WKView.mm
@@ -208,7 +208,13 @@ typedef HashMap<String, ValidationVector> ValidationMap;
- (BOOL)becomeFirstResponder
{
+ NSSelectionDirection direction = [[self window] keyViewSelectionDirection];
+
_data->_page->setFocused(true);
+
+ if (direction != NSDirectSelection)
+ _data->_page->setInitialFocus(direction == NSSelectingNext);
+
return YES;
}
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list