From bebe0c67daacaa31d239a6aec7b51c1162adff5a Mon Sep 17 00:00:00 2001 From: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Date: Sat, 24 Feb 2024 21:38:12 +0100 Subject: [PATCH] Fix double "close" action from Overview ESC key (#11185) --- .../unciv/ui/screens/overviewscreen/EmpireOverviewScreen.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/src/com/unciv/ui/screens/overviewscreen/EmpireOverviewScreen.kt b/core/src/com/unciv/ui/screens/overviewscreen/EmpireOverviewScreen.kt index bc24cbb39b..1f86e8eae2 100644 --- a/core/src/com/unciv/ui/screens/overviewscreen/EmpireOverviewScreen.kt +++ b/core/src/com/unciv/ui/screens/overviewscreen/EmpireOverviewScreen.kt @@ -6,7 +6,6 @@ import com.unciv.GUI import com.unciv.logic.civilization.Civilization import com.unciv.logic.civilization.Notification import com.unciv.ui.components.extensions.getCloseButton -import com.unciv.ui.components.input.KeyCharAndCode import com.unciv.ui.components.widgets.TabbedPager import com.unciv.ui.images.ImageGetter import com.unciv.ui.screens.basescreen.BaseScreen @@ -45,8 +44,6 @@ class EmpireOverviewScreen( val selectCategory = defaultCategory ?: EmpireOverviewCategories.values().firstOrNull { it.name == game.settings.lastOverviewPage } val iconSize = Constants.defaultFontSize.toFloat() - globalShortcuts.add(KeyCharAndCode.BACK) { game.popScreen() } - tabbedPager = TabbedPager( stage.width, stage.width, centerAreaHeight, centerAreaHeight,