diff options
author | Felipe Heidrich <fheidric> | 2007-08-17 20:59:10 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2007-08-17 20:59:10 +0000 |
commit | 589e4d41f659508ea312034fc0f2d5c0726c9ff4 (patch) | |
tree | 41cfd2a831e38913ccd57313161a3ececd374e0f | |
parent | 71cc73f776fb03aa531c6ed1ef7fc5a4f97a399c (diff) | |
download | eclipse.platform.swt-589e4d41f659508ea312034fc0f2d5c0726c9ff4.tar.gz eclipse.platform.swt-589e4d41f659508ea312034fc0f2d5c0726c9ff4.tar.xz eclipse.platform.swt-589e4d41f659508ea312034fc0f2d5c0726c9ff4.zip |
fix mirrored arrow traversal
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java index f661f2393e..9d171344a8 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java @@ -3308,9 +3308,6 @@ boolean translateTraversal (MSG msg) { doit = false; } } - if (parent != null && (parent.style & SWT.MIRRORED) != 0) { - if (key == OS.VK_LEFT || key == OS.VK_RIGHT) next = !next; - } detail = next ? SWT.TRAVERSE_TAB_NEXT : SWT.TRAVERSE_TAB_PREVIOUS; break; } @@ -3330,6 +3327,9 @@ boolean translateTraversal (MSG msg) { int /*long*/ code = OS.SendMessage (hwnd, OS.WM_GETDLGCODE, 0, 0); if ((code & (OS.DLGC_WANTARROWS /*| OS.DLGC_WANTALLKEYS*/)) != 0) doit = false; boolean next = key == OS.VK_DOWN || key == OS.VK_RIGHT; + if (parent != null && (parent.style & SWT.MIRRORED) != 0) { + if (key == OS.VK_LEFT || key == OS.VK_RIGHT) next = !next; + } detail = next ? SWT.TRAVERSE_ARROW_NEXT : SWT.TRAVERSE_ARROW_PREVIOUS; break; } |