forked from External/mage
GUI: fixed wrong clicks from additional mouse buttons (now only left clicks are allowed, closes #11455)
This commit is contained in:
parent
75958e3710
commit
a0ed89035f
17 changed files with 82 additions and 21 deletions
|
|
@ -580,6 +580,9 @@ public class TablesPanel extends javax.swing.JPanel {
|
|||
table.addMouseListener(new MouseAdapter() {
|
||||
@Override
|
||||
public void mouseClicked(MouseEvent e) {
|
||||
if (!SwingUtilities.isLeftMouseButton(e)) {
|
||||
return;
|
||||
}
|
||||
int modelRow = TablesUtil.getSelectedModelRow(table);
|
||||
if (e.getClickCount() == 2 && modelRow != -1) {
|
||||
action.actionPerformed(new ActionEvent(table, ActionEvent.ACTION_PERFORMED, TablesUtil.getSearchIdFromTable(table, modelRow)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue