Skip to content

Commit

Permalink
fix(gui): detecting tab click with mousePressed instead of mouseClick…
Browse files Browse the repository at this point in the history
…ed (PR #2097)
  • Loading branch information
AndreiKud authored Feb 4, 2024
1 parent 0a40b53 commit 7e628ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jadx-gui/src/main/java/jadx/gui/ui/TabComponent.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 7e628ad

Please sign in to comment.