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)) {