Draft: cards can be picked by doubleclicking them

This commit is contained in:
Maxmtg
2011-09-11 13:32:36 +00:00
parent e5ed021678
commit 104d79d619

View File

@@ -19,7 +19,6 @@ import forge.view.swing.OldGuiNewGame;
import javax.swing.*;
import org.apache.axis.utils.ArrayUtil;
import org.apache.commons.lang3.ArrayUtils;
import net.slightlymagic.maxmtg.Predicate;
@@ -111,9 +110,11 @@ public class DeckEditorDraft extends DeckEditorBase implements NewConstants, New
top.getTable().addKeyListener(new KeyAdapter() {
@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); } } });
}