- 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,7 +58,9 @@ public class VPrompt implements IVDoc<CPrompt> {
public void keyPressed(final KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
if (btnCancel.isEnabled()) {
btnCancel.doClick();
if (!btnCancel.getText().equals("End Turn")) {
btnCancel.doClick();
}
}
}
}