mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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
Notes:
sideshowbarker
2024-07-18 18:02:35 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/68e86dc8048 Pull-request: https://github.com/SerenityOS/serenity/pull/7148 Reviewed-by: https://github.com/awesomekling
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…
Reference in a new issue