Skip to content

Commit

Permalink
HistoryMenuMouseListener right click menu fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joroto committed Jan 23, 2024
1 parent f74c727 commit 3975a5c
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3975a5c

Please sign in to comment.