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
Notes: sideshowbarker 2024-07-17 02:59:40 +09:00

View File

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