[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
darin
darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:32:50 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit ff50f735f71ca59b4505c920949e811b6b115043
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Aug 19 21:54:04 2002 +0000
Fixed tab cycle on slashdot.org and elsewhere by being stricter about what is
included in the tab cycle.
* kwq/KWQWidget.mm: (QWidget::focusPolicy): Use the same rule as AppKit.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1872 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2002-12-03 b/WebCore/ChangeLog-2002-12-03
index 99521ed..2a27e27 100644
--- a/WebCore/ChangeLog-2002-12-03
+++ b/WebCore/ChangeLog-2002-12-03
@@ -1,3 +1,10 @@
+2002-08-19 Darin Adler <darin at apple.com>
+
+ Fixed tab cycle on slashdot.org and elsewhere by being stricter about what is
+ included in the tab cycle.
+
+ * kwq/KWQWidget.mm: (QWidget::focusPolicy): Use the same rule as AppKit.
+
2002-08-19 David Hyatt <hyatt at apple.com>
Tweak baselines to look a little better for form controls.
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 99521ed..2a27e27 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,3 +1,10 @@
+2002-08-19 Darin Adler <darin at apple.com>
+
+ Fixed tab cycle on slashdot.org and elsewhere by being stricter about what is
+ included in the tab cycle.
+
+ * kwq/KWQWidget.mm: (QWidget::focusPolicy): Use the same rule as AppKit.
+
2002-08-19 David Hyatt <hyatt at apple.com>
Tweak baselines to look a little better for form controls.
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 99521ed..2a27e27 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,10 @@
+2002-08-19 Darin Adler <darin at apple.com>
+
+ Fixed tab cycle on slashdot.org and elsewhere by being stricter about what is
+ included in the tab cycle.
+
+ * kwq/KWQWidget.mm: (QWidget::focusPolicy): Use the same rule as AppKit.
+
2002-08-19 David Hyatt <hyatt at apple.com>
Tweak baselines to look a little better for form controls.
diff --git a/WebCore/kwq/KWQWidget.mm b/WebCore/kwq/KWQWidget.mm
index 60d4db1..9ac6ede 100644
--- a/WebCore/kwq/KWQWidget.mm
+++ b/WebCore/kwq/KWQWidget.mm
@@ -189,7 +189,19 @@ void QWidget::clearFocus()
QWidget::FocusPolicy QWidget::focusPolicy() const
{
- return [getView() acceptsFirstResponder] ? TabFocus : NoFocus;
+ // This is the AppKit rule for what can be tabbed to.
+ // An NSControl that accepts first responder, and has an editable, enabled cell.
+
+ NSView *view = getView();
+ if (![view acceptsFirstResponder] || ![view isKindOfClass:[NSControl class]]) {
+ return NoFocus;
+ }
+ NSControl *control = (NSControl *)view;
+ NSCell *cell = [control cell];
+ if (![cell isEditable] || ![cell isEnabled]) {
+ return NoFocus;
+ }
+ return TabFocus;
}
void QWidget::setFocusPolicy(FocusPolicy fp)
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list