summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2008-07-10 21:18:52 +0000
committerSilenio Quarti <silenio>2008-07-10 21:18:52 +0000
commitfe01df1082b5613213a59b03292c02660626087d (patch)
treebfe9375fc18a48bccd329daaac69a66e89849c8d
parent1a6e006e3846000447e8938db0bd1aa6f52d6fd2 (diff)
downloadeclipse.platform.swt-fe01df1082b5613213a59b03292c02660626087d.tar.gz
eclipse.platform.swt-fe01df1082b5613213a59b03292c02660626087d.tar.xz
eclipse.platform.swt-fe01df1082b5613213a59b03292c02660626087d.zip
make consistent to other platforms
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java
index a8e8f35d06..8dd6bbfaaa 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java
@@ -671,6 +671,7 @@ public void setText (String string) {
int traversalCode (int key, NSEvent theEvent) {
int code = super.traversalCode (key, theEvent);
+ if ((style & SWT.ARROW) != 0) code &= ~(SWT.TRAVERSE_TAB_NEXT | SWT.TRAVERSE_TAB_PREVIOUS);
if ((style & SWT.RADIO) != 0) code |= SWT.TRAVERSE_ARROW_NEXT | SWT.TRAVERSE_ARROW_PREVIOUS;
return code;
}