From: hansonr Date: Mon, 21 Jan 2019 17:39:57 +0000 (-0600) Subject: isAMac() -> isAMacAndNotJS(), isWindows() -> isWindowsAndNotJS() X-Git-Tag: Release_2_11_4_0~45^2~18^2~304 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=839552f2a09d84238d202f8c4f7b9bc630d48e6e;p=jalview.git isAMac() -> isAMacAndNotJS(), isWindows() -> isWindowsAndNotJS() Added Platform.isWin[Right|Middle]Button() --- diff --git a/src/jalview/util/Platform.java b/src/jalview/util/Platform.java index bb3f7fa..6c32ad4 100644 --- a/src/jalview/util/Platform.java +++ b/src/jalview/util/Platform.java @@ -191,8 +191,8 @@ public class Platform return !isAMacAndNotJS() && SwingUtilities.isRightMouseButton(e); } - public static boolean isWinMiddleButton(MouseEvent evt) + public static boolean isWinMiddleButton(MouseEvent e) { - return !isAMacAndNotJS() && ((evt.getModifiers() & InputEvent.BUTTON2_MASK) == InputEvent.BUTTON2_MASK); + return !isAMacAndNotJS() && SwingUtilities.isMiddleMouseButton(e); } }