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
|
|
@ -1022,8 +1022,11 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
btnDebug.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
|
||||
btnDebug.addMouseListener(new java.awt.event.MouseAdapter() {
|
||||
@Override
|
||||
public void mouseClicked(java.awt.event.MouseEvent evt) {
|
||||
btnDebugMouseClicked(evt);
|
||||
public void mouseClicked(java.awt.event.MouseEvent e) {
|
||||
if (!SwingUtilities.isLeftMouseButton(e)) {
|
||||
return;
|
||||
}
|
||||
btnDebugMouseClicked(e);
|
||||
}
|
||||
});
|
||||
mageToolbar.add(btnDebug);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue