X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=blobdiff_plain;f=src%2Fjalview%2Futil%2FPlatform.java;fp=src%2Fjalview%2Futil%2FPlatform.java;h=6a5f13375c4133e95e5514f4548bbb4b10f501b3;hp=2c7460956736d88743d5e23409de5072f933ffa2;hb=507f8f9e119ce89ba04aea3b3d814cbe58f3d686;hpb=9fe513b9503362720ee97b2e05d33df399cfd55c diff --git a/src/jalview/util/Platform.java b/src/jalview/util/Platform.java index 2c74609..6a5f133 100644 --- a/src/jalview/util/Platform.java +++ b/src/jalview/util/Platform.java @@ -30,6 +30,7 @@ import java.awt.event.MouseEvent; */ public class Platform { + private static Boolean isAMac = null, isWindows = null; private static Boolean isHeadless = null; @@ -37,13 +38,16 @@ public class Platform /** * sorry folks - Macs really are different * + * BH: disabled for SwingJS -- will need to check key-press issues + * * @return true if we do things in a special way. */ public static boolean isAMac() { if (isAMac == null) { - isAMac = System.getProperty("os.name").indexOf("Mac") > -1; + isAMac = /** @j2sNative false && */ + System.getProperty("os.name").indexOf("Mac") > -1; } return isAMac.booleanValue(); @@ -59,7 +63,8 @@ public class Platform { if (isWindows == null) { - isWindows = System.getProperty("os.name").indexOf("Win") > -1; + isWindows = /** @j2sNative false && */ + System.getProperty("os.name").indexOf("Win") > -1; } return isWindows.booleanValue(); }