From 3c2227ceed58cc64e61fc1ad7455cfd522fcd65a Mon Sep 17 00:00:00 2001 From: Baitinq Date: Mon, 19 Dec 2022 18:54:43 +0100 Subject: [PATCH] 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 :)) --- Userland/Games/Snake/SnakeGame.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Games/Snake/SnakeGame.cpp b/Userland/Games/Snake/SnakeGame.cpp index af6a2e2e3b..2e43a9d531 100644 --- a/Userland/Games/Snake/SnakeGame.cpp +++ b/Userland/Games/Snake/SnakeGame.cpp @@ -212,6 +212,7 @@ void SnakeGame::keydown_event(GUI::KeyEvent& event) queue_velocity(1, 0); break; default: + event.ignore(); break; } }