summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorScott Kovatch <skovatch>2011-01-10 18:52:20 +0000
committerScott Kovatch <skovatch>2011-01-10 18:52:20 +0000
commit7c365a9b491fc2157a4d44e17ff65060724712f7 (patch)
treeffcac3752ac246b28ee4002a618a73dd6a0c2ffc /bundles
parente97a6f9ba394d2481c8510a8d9a493402a3ef897 (diff)
downloadeclipse.platform.swt-7c365a9b491fc2157a4d44e17ff65060724712f7.tar.gz
eclipse.platform.swt-7c365a9b491fc2157a4d44e17ff65060724712f7.tar.xz
eclipse.platform.swt-7c365a9b491fc2157a4d44e17ff65060724712f7.zip
333893 - NSDocModalWindowMask can be a key window.
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java2
1 files changed, 1 insertions, 1 deletions
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 87e3508dbc..42ff24a325 100755
--- 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
@@ -510,7 +510,7 @@ boolean canBecomeKeyWindow (int /*long*/ id, int /*long*/ sel) {
// Only answer if SWT created the window.
if (window != null) {
int /*long*/ styleMask = window.styleMask();
- if (styleMask == OS.NSBorderlessWindowMask || (styleMask & OS.NSNonactivatingPanelMask) != 0) return true;
+ if (styleMask == OS.NSBorderlessWindowMask || (styleMask & (OS.NSNonactivatingPanelMask | OS.NSDocModalWindowMask)) != 0) return true;
}
return super.canBecomeKeyWindow (id, sel);
}