summaryrefslogtreecommitdiff
path: root/Userland/Games/Solitaire
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-05-15 07:37:00 -0400
committerAndreas Kling <kling@serenityos.org>2021-05-16 16:37:51 +0200
commit68e86dc8048479ea7ef72468ba60960bbccc7140 (patch)
tree8d3affae3a2e05e8989cb54048e92ba84118b9a2 /Userland/Games/Solitaire
parente310b9cd0d3c0871566e78d675d07266d1040a14 (diff)
downloadserenity-68e86dc8048479ea7ef72468ba60960bbccc7140.zip
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.
Diffstat (limited to 'Userland/Games/Solitaire')
-rw-r--r--Userland/Games/Solitaire/Game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/Solitaire/Game.cpp b/Userland/Games/Solitaire/Game.cpp
index 72d9b126bc..7c677b7c2e 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();
}