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.
This commit is contained in:
Timothy Flynn 2021-05-15 07:37:00 -04:00 committed by Andreas Kling
parent e310b9cd0d
commit 68e86dc804
Notes: sideshowbarker 2024-07-18 18:02:35 +09:00

View file

@ -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();
}