Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2013-04-05 15:48:55 +0000
committerCarolyn MacLeod2013-04-09 14:57:07 +0000
commit3b40fae8aba50f2a4e883148a5bbefb794327478 (patch)
tree4b59ec3612aca791bd2a11631dd4363ffa8be3ea
parent7cabcdf56fba7bd161b65845f9b22f1fa36951a3 (diff)
downloadeclipse.platform.swt-carolyn/uia_work.tar.gz
eclipse.platform.swt-carolyn/uia_work.tar.xz
eclipse.platform.swt-carolyn/uia_work.zip
Bug 376011 - [accessibility] Eclipse 4.2 tab traversal needs refiningcarolyn/uia_work
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java8
2 files changed, 8 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java
index f7dabc4579..946473f8df 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java
@@ -3382,7 +3382,7 @@ boolean sendMouseEvent (NSEvent nsEvent, int type, boolean send) {
} else {
postEvent (type, event);
}
- if (shell != null) shell.setActiveControl(this);
+ if (shell != null) shell.setActiveControl(this, SWT.MouseDown);
return event.doit;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
index 6582d65fbf..444b13e9c3 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
@@ -1535,6 +1535,10 @@ public void setActive () {
}
void setActiveControl (Control control) {
+ setActiveControl (control, SWT.None);
+}
+
+void setActiveControl (Control control, int type) {
if (control != null && control.isDisposed ()) control = null;
if (lastActive != null && lastActive.isDisposed ()) lastActive = null;
if (lastActive == control) return;
@@ -1566,7 +1570,9 @@ void setActiveControl (Control control) {
}
for (int i=activate.length-1; i>=index; --i) {
if (!activate [i].isDisposed ()) {
- activate [i].sendEvent (SWT.Activate);
+ Event event = new Event ();
+ event.detail = type;
+ activate [i].sendEvent (SWT.Activate, event);
}
}
}

Back to the top