mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Do not use Escape as a key for passing priority until end of turn.
This commit is contained in:
@@ -58,7 +58,9 @@ public class VPrompt implements IVDoc<CPrompt> {
|
|||||||
public void keyPressed(final KeyEvent e) {
|
public void keyPressed(final KeyEvent e) {
|
||||||
if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
|
if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
|
||||||
if (btnCancel.isEnabled()) {
|
if (btnCancel.isEnabled()) {
|
||||||
btnCancel.doClick();
|
if (!btnCancel.getText().equals("End Turn")) {
|
||||||
|
btnCancel.doClick();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user