Prevent Back button doing anything on Match screen so it's not accidentally bumped when going for OK or Cancel button

This commit is contained in:
drdev
2014-06-21 03:51:26 +00:00
parent e4687798f5
commit b75d4471ce

View File

@@ -141,8 +141,7 @@ public class MatchScreen extends FScreen {
case Keys.ESCAPE: case Keys.ESCAPE:
return prompt.getBtnCancel().trigger(); //otherwise trigger Cancel return prompt.getBtnCancel().trigger(); //otherwise trigger Cancel
case Keys.BACK: case Keys.BACK:
FControl.undoLastAction(); //let Back trigger undo instead of going back a screen return true; //suppress Back button so it's not bumped when trying to press OK or Cancel buttons
return true;
case Keys.A: //alpha strike on Ctrl+A case Keys.A: //alpha strike on Ctrl+A
if (KeyInputAdapter.isCtrlKeyDown()) { if (KeyInputAdapter.isCtrlKeyDown()) {
FControl.alphaStrike(); FControl.alphaStrike();