Allow ESC to dismiss console in addition to android back button

This commit is contained in:
Robin Woodby
2025-06-11 12:05:11 -07:00
committed by Chris H
parent ed7fb03b9c
commit 07db8e5a94

View File

@@ -813,9 +813,10 @@ public class GameHUD extends Stage {
toggleConsole(); toggleConsole();
return true; return true;
} }
if (keycode == Input.Keys.BACK) { if (KeyBinding.Back.isPressed(keycode)) {
if (console.isVisible()) { if (console.isVisible()) {
toggleConsole(); toggleConsole();
return true;
} }
} }
if (console.isVisible()) if (console.isVisible())