From 54663c514798ff54814b65e34e7064f364c10881 Mon Sep 17 00:00:00 2001 From: Ashwath V A Date: Fri, 1 Oct 2021 08:17:10 +0530 Subject: [PATCH] Escape key on the main menu wont exit the app --- .../src/main/java/org/destinationsol/menu/MainMenuScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/main/java/org/destinationsol/menu/MainMenuScreen.java b/engine/src/main/java/org/destinationsol/menu/MainMenuScreen.java index d2cb41014..60635ca31 100644 --- a/engine/src/main/java/org/destinationsol/menu/MainMenuScreen.java +++ b/engine/src/main/java/org/destinationsol/menu/MainMenuScreen.java @@ -71,7 +71,7 @@ public class MainMenuScreen extends SolUiBaseScreen { optionsControl.setDisplayName("Options"); controls.add(optionsControl); - exitControl = new SolUiControl(buttonWidth, buttonHeight, UiDrawer.positions.get("bottom"), 0, calculateButtonOffsetFromBottom(0), true, gameOptions.getKeyEscape()); + exitControl = new SolUiControl(buttonWidth, buttonHeight, UiDrawer.positions.get("bottom"), 0, calculateButtonOffsetFromBottom(0), true); exitControl.setDisplayName("Exit"); controls.add(exitControl);