From bfbcfd1592f36edbac05f1aa73de3ece3cee3982 Mon Sep 17 00:00:00 2001 From: StevenLawson Date: Sun, 24 Aug 2014 18:13:42 -0400 Subject: [PATCH] Fix popup not working in Mac & Linux. --- .../java/me/StevenLawson/BukkitTelnetClient/BTC_MainPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/StevenLawson/BukkitTelnetClient/BTC_MainPanel.java b/src/main/java/me/StevenLawson/BukkitTelnetClient/BTC_MainPanel.java index c9ecde3..37996fb 100644 --- a/src/main/java/me/StevenLawson/BukkitTelnetClient/BTC_MainPanel.java +++ b/src/main/java/me/StevenLawson/BukkitTelnetClient/BTC_MainPanel.java @@ -323,7 +323,8 @@ public class BTC_MainPanel extends javax.swing.JFrame { return; } - if (mouseEvent.isPopupTrigger() && mouseEvent.getComponent() instanceof JTable) + + if ((SwingUtilities.isRightMouseButton(mouseEvent) || mouseEvent.isControlDown()) && mouseEvent.getComponent() instanceof JTable) { final PlayerInfo player = getSelectedPlayer(); if (player != null)