mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Draft: cards can be picked by doubleclicking them
This commit is contained in:
@@ -19,7 +19,6 @@ import forge.view.swing.OldGuiNewGame;
|
|||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
|
||||||
import org.apache.axis.utils.ArrayUtil;
|
|
||||||
import org.apache.commons.lang3.ArrayUtils;
|
import org.apache.commons.lang3.ArrayUtils;
|
||||||
|
|
||||||
import net.slightlymagic.maxmtg.Predicate;
|
import net.slightlymagic.maxmtg.Predicate;
|
||||||
@@ -111,9 +110,11 @@ public class DeckEditorDraft extends DeckEditorBase implements NewConstants, New
|
|||||||
|
|
||||||
top.getTable().addKeyListener(new KeyAdapter() {
|
top.getTable().addKeyListener(new KeyAdapter() {
|
||||||
@Override public void keyPressed(final KeyEvent e) {
|
@Override public void keyPressed(final KeyEvent e) {
|
||||||
if (e.getKeyChar() == ' ') { jButton1_actionPerformed(null); }
|
if (e.getKeyChar() == ' ') { jButton1_actionPerformed(null); } } });
|
||||||
}
|
top.getTable().addMouseListener(new MouseAdapter() {
|
||||||
});
|
@Override public void mouseClicked(final MouseEvent e) {
|
||||||
|
if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != 0 && e.getClickCount() == 2) {
|
||||||
|
jButton1_actionPerformed(null); } } });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user