- Do not use Escape as a key for passing priority until end of turn.

This commit is contained in:
Agetian
2017-01-06 06:46:48 +00:00
parent 7d3e775307
commit b5ad2e27e9

View File

@@ -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;