From 7e628ad1a14233aa8d94f1059c8d57884709fa75 Mon Sep 17 00:00:00 2001 From: Andrei Kudryavtsev Date: Sun, 4 Feb 2024 22:36:02 +0500 Subject: [PATCH] fix(gui): detecting tab click with mousePressed instead of mouseClicked (PR #2097) --- jadx-gui/src/main/java/jadx/gui/ui/TabComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jadx-gui/src/main/java/jadx/gui/ui/TabComponent.java b/jadx-gui/src/main/java/jadx/gui/ui/TabComponent.java index cdce81c1290..88e704a1322 100644 --- a/jadx-gui/src/main/java/jadx/gui/ui/TabComponent.java +++ b/jadx-gui/src/main/java/jadx/gui/ui/TabComponent.java @@ -79,7 +79,7 @@ private void init() { MouseAdapter clickAdapter = new MouseAdapter() { @Override - public void mouseClicked(MouseEvent e) { + public void mousePressed(MouseEvent e) { if (SwingUtilities.isMiddleMouseButton(e)) { tabbedPane.closeCodePanel(contentPanel); } else if (SwingUtilities.isRightMouseButton(e)) {