mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
Solitaire: Don't allow the player to draw cards while mouse is down
This commit is contained in:
parent
81784afbe1
commit
f583cddaf7
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ void Game::keydown_event(GUI::KeyEvent& event)
|
||||||
start_game_over_animation();
|
start_game_over_animation();
|
||||||
} else if (event.key() == KeyCode::Key_Tab) {
|
} else if (event.key() == KeyCode::Key_Tab) {
|
||||||
auto_move_eligible_cards_to_foundations();
|
auto_move_eligible_cards_to_foundations();
|
||||||
} else if (event.key() == KeyCode::Key_Space) {
|
} else if (event.key() == KeyCode::Key_Space && m_mouse_down != true) {
|
||||||
draw_cards();
|
draw_cards();
|
||||||
} else if (event.shift() && event.key() == KeyCode::Key_F11) {
|
} else if (event.shift() && event.key() == KeyCode::Key_F11) {
|
||||||
dump_layout();
|
dump_layout();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue