From 4b5f5d8ba4f8238abf0f901e841f3db90b7d0f9d Mon Sep 17 00:00:00 2001 From: Pavel Braginskiy Date: Mon, 22 Jul 2024 14:43:32 -0700 Subject: [PATCH] Don't open RS right click menu on left click --- .../src/megameklab/ui/generalUnit/RecordSheetPreviewPanel.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/megameklab/src/megameklab/ui/generalUnit/RecordSheetPreviewPanel.java b/megameklab/src/megameklab/ui/generalUnit/RecordSheetPreviewPanel.java index fa44f2a9d..4c94892d7 100644 --- a/megameklab/src/megameklab/ui/generalUnit/RecordSheetPreviewPanel.java +++ b/megameklab/src/megameklab/ui/generalUnit/RecordSheetPreviewPanel.java @@ -83,6 +83,9 @@ public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorExcepti @Override public void mouseClicked(MouseEvent e) { super.mouseClicked(e); + if (e.getButton() != MouseEvent.BUTTON3) { + return; + } popup.show(e.getComponent(), e.getX(), e.getY()); } }