1
Fork 0
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:
Baitinq 2022-12-19 18:54:43 +01:00 committed by Tim Flynn
parent 89c6d41e9c
commit 3c2227ceed

View file

@ -212,6 +212,7 @@ void SnakeGame::keydown_event(GUI::KeyEvent& event)
queue_velocity(1, 0);
break;
default:
event.ignore();
break;
}
}