From 3975a5c43bebe20b321ed7a99047e5efc3e557d0 Mon Sep 17 00:00:00 2001 From: joroto Date: Wed, 24 Jan 2024 00:02:44 +0200 Subject: [PATCH] HistoryMenuMouseListener right click menu fix --- .../rarchives/ripme/ui/HistoryMenuMouseListener.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ui/HistoryMenuMouseListener.java b/src/main/java/com/rarchives/ripme/ui/HistoryMenuMouseListener.java index cf288f2d4..8a69477cc 100644 --- a/src/main/java/com/rarchives/ripme/ui/HistoryMenuMouseListener.java +++ b/src/main/java/com/rarchives/ripme/ui/HistoryMenuMouseListener.java @@ -62,7 +62,16 @@ public void actionPerformed(ActionEvent ae) { } @Override - public void mouseClicked(MouseEvent e) { + public void mousePressed(MouseEvent e) { + checkPopupTrigger(e); + } + + @Override + public void mouseReleased(MouseEvent e) { + checkPopupTrigger(e); + } + + private void checkPopupTrigger(MouseEvent e) { if (e.getModifiersEx() == InputEvent.BUTTON3_DOWN_MASK) { if (!(e.getSource() instanceof JTable)) { return;