From 839552f2a09d84238d202f8c4f7b9bc630d48e6e Mon Sep 17 00:00:00 2001 From: hansonr Date: Mon, 21 Jan 2019 11:39:57 -0600 Subject: [PATCH] isAMac() -> isAMacAndNotJS(), isWindows() -> isWindowsAndNotJS() Added Platform.isWin[Right|Middle]Button() --- src/jalview/util/Platform.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 1.7.10.2