mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user