Disable context menus on editation

This commit is contained in:
Jindra Petřík
2022-12-04 09:54:28 +01:00
parent a70fdae882
commit e7dc9728a1
8 changed files with 29 additions and 14 deletions

View File

@@ -135,6 +135,7 @@ import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
import javax.swing.SwingWorker;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
@@ -2673,7 +2674,7 @@ public class Main {
*/
@Override
public void mouseClicked(MouseEvent e) {
if (e.getButton() == MouseEvent.BUTTON1) {
if (SwingUtilities.isLeftMouseButton(e)) {
Main.showProxy();
}
}