mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:17:46 +00:00
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:
parent
e310b9cd0d
commit
68e86dc804
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue