Bob first commit JAL-3032
[jalview.git] / src / jalview / util / Platform.java
index 2c74609..6a5f133 100644 (file)
@@ -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();
   }