diff options
author | Steve Northover | 2002-06-19 15:32:27 +0000 |
---|---|---|
committer | Steve Northover | 2002-06-19 15:32:27 +0000 |
commit | 5570800fa645bff42714c602c181356a5a4234b7 (patch) | |
tree | d5faaf75b5975cd1f0db0dbfdf0a34b539e72558 | |
parent | e309bef8ea6d5811edb1b086f730c64fa937d7ed (diff) | |
download | eclipse.platform.swt-5570800fa645bff42714c602c181356a5a4234b7.tar.gz eclipse.platform.swt-5570800fa645bff42714c602c181356a5a4234b7.tar.xz eclipse.platform.swt-5570800fa645bff42714c602c181356a5a4234b7.zip |
17208
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java | 5 |
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 */
|