mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
Snake: Ignore default keydown events
Before this patch, all key down events except arrow keys or WASD were not propagated, so keyboard shortcuts in the application didn't work. This patch fixes this :))
This commit is contained in:
parent
89c6d41e9c
commit
3c2227ceed
1 changed files with 1 additions and 0 deletions
|
@ -212,6 +212,7 @@ void SnakeGame::keydown_event(GUI::KeyEvent& event)
|
|||
queue_velocity(1, 0);
|
||||
break;
|
||||
default:
|
||||
event.ignore();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue