From 2b78509986ca58e75768666e922a8ea2450d58b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 9 Jan 2026 11:34:24 +0100 Subject: [PATCH] Fix the back button resuming the game on the pause screen --- UI/PauseScreen.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/UI/PauseScreen.cpp b/UI/PauseScreen.cpp index 69a8625ee6..d618f34dbb 100644 --- a/UI/PauseScreen.cpp +++ b/UI/PauseScreen.cpp @@ -352,7 +352,9 @@ GamePauseScreen::~GamePauseScreen() { } bool GamePauseScreen::key(const KeyInput &key) { - if (!UIScreen::key(key) && (key.flags & KeyInputFlags::DOWN)) { + bool handled = UIDialogScreen::key(key); + + if (!handled && (key.flags & KeyInputFlags::DOWN)) { // Special case to be able to unpause with a bound pause key. // Normally we can't bind keys used in the UI. InputMapping mapping(key.deviceId, key.keyCode); @@ -366,7 +368,7 @@ bool GamePauseScreen::key(const KeyInput &key) { } return false; } - return false; + return handled; } void GamePauseScreen::CreateSavestateControls(UI::LinearLayout *leftColumnItems) {