Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover2002-06-19 15:32:27 +0000
committerSteve Northover2002-06-19 15:32:27 +0000
commit5570800fa645bff42714c602c181356a5a4234b7 (patch)
treed5faaf75b5975cd1f0db0dbfdf0a34b539e72558
parente309bef8ea6d5811edb1b086f730c64fa937d7ed (diff)
downloadeclipse.platform.swt-5570800fa645bff42714c602c181356a5a4234b7.tar.gz
eclipse.platform.swt-5570800fa645bff42714c602c181356a5a4234b7.tar.xz
eclipse.platform.swt-5570800fa645bff42714c602c181356a5a4234b7.zip
17208
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java5
1 files changed, 4 insertions, 1 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 a426945d9a..37002925b8 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
@@ -3859,7 +3859,10 @@ LRESULT WM_SYSCOMMAND (int wParam, int lParam) {
* Do not allow keyboard traversal of the menu bar
* or scrolling when the shell is not enabled.
*/
- if (!menuShell ().isEnabled ()) return LRESULT.ZERO;
+ Decorations shell = menuShell ();
+ if (!shell.isEnabled () || !shell.isActive ()) {
+ return LRESULT.ZERO;
+ }
break;
case OS.SC_MINIMIZE:
/* Save the focus widget when the shell is minimized */

Back to the top