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,10 +58,12 @@ public class VPrompt implements IVDoc<CPrompt> {
|
||||
public void keyPressed(final KeyEvent e) {
|
||||
if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
|
||||
if (btnCancel.isEnabled()) {
|
||||
if (!btnCancel.getText().equals("End Turn")) {
|
||||
btnCancel.doClick();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private final CPrompt controller;
|
||||
|
||||
Reference in New Issue
Block a user