From 68e86dc8048479ea7ef72468ba60960bbccc7140 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 15 May 2021 07:37:00 -0400 Subject: [PATCH] Solitaire: Add shift modifier to hidden "game over" key combo Makes it a bit less likely that someone will hit it on accident and ruin their game. --- Userland/Games/Solitaire/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Games/Solitaire/Game.cpp b/Userland/Games/Solitaire/Game.cpp index 72d9b126bca..7c677b7c2e3 100644 --- a/Userland/Games/Solitaire/Game.cpp +++ b/Userland/Games/Solitaire/Game.cpp @@ -137,7 +137,7 @@ void Game::keydown_event(GUI::KeyEvent& event) if (m_new_game_animation || m_game_over_animation) return; - if (event.key() == KeyCode::Key_F12) + if (event.shift() && (event.key() == KeyCode::Key_F12)) start_game_over_animation(); }