aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Hake2013-12-04 08:30:17 (EST)
committerGerrit Code Review @ Eclipse.org2013-12-04 12:33:06 (EST)
commit698f3b1eea0d62a554e3d5f90644951ea2e5df45 (patch)
treead94a7d7991d46db82b81cff35eb443d4ecc0ac2
parent08488af4a08131094290f0866f4e94f3e80dabd3 (diff)
downloadorg.eclipse.nebula-698f3b1eea0d62a554e3d5f90644951ea2e5df45.zip
org.eclipse.nebula-698f3b1eea0d62a554e3d5f90644951ea2e5df45.tar.gz
org.eclipse.nebula-698f3b1eea0d62a554e3d5f90644951ea2e5df45.tar.bz2
Bug 419447 - Fixed focus traversing of VTracker.refs/changes/08/19308/2
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=419447 Change-Id: Ib4a7c7de305585b3a5d725a74b5013ab4ed7f3d1 Signed-off-by: Thorsten Hake <eclipse@thorsten-hake.com>
-rw-r--r--widgets/cwt/org.eclipse.nebula.cwt/src/org/eclipse/nebula/cwt/v/VTracker.java15
1 files changed, 2 insertions, 13 deletions
diff --git a/widgets/cwt/org.eclipse.nebula.cwt/src/org/eclipse/nebula/cwt/v/VTracker.java b/widgets/cwt/org.eclipse.nebula.cwt/src/org/eclipse/nebula/cwt/v/VTracker.java
index 93e6efc..72882dd 100644
--- a/widgets/cwt/org.eclipse.nebula.cwt/src/org/eclipse/nebula/cwt/v/VTracker.java
+++ b/widgets/cwt/org.eclipse.nebula.cwt/src/org/eclipse/nebula/cwt/v/VTracker.java
@@ -7,6 +7,7 @@
*
* Contributors:
* Jeremy Dowdall <jeremyd@aspencloud.com> - initial API and implementation
+* Thorsten Hake <mail@thorsten-hake.com> - Fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=419447
*****************************************************************************/
package org.eclipse.nebula.cwt.v;
@@ -216,8 +217,8 @@ public class VTracker implements DisposeListener {
case SWT.Traverse:
lastTraverse = event.detail;
if(SWT.TRAVERSE_TAB_NEXT == event.detail || SWT.TRAVERSE_TAB_PREVIOUS == event.detail) {
- event.doit = true;
if(focusControl != null) {
+ event.doit = true;
focusControl.handleEvent(event);
if(event.doit) {
Composite comp = focusControl.getWidget();
@@ -227,18 +228,6 @@ public class VTracker implements DisposeListener {
setFocusToPrev(comp);
}
}
- } else if(event.widget instanceof Control) {
- if(SWT.TRAVERSE_TAB_NEXT == event.detail) {
- if(setFocusFromPrev((Control) event.widget)){
- event.type = SWT.None;
- event.doit = false;
- }
- } else {
- if(setFocusFromNext((Control) event.widget)){
- event.type = SWT.None;
- event.doit = false;
- }
- }
}
}
break;