mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03: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
Notes:
sideshowbarker
2024-07-17 02:59:40 +09:00
Author: https://github.com/Baitinq Commit: https://github.com/SerenityOS/serenity/commit/3c2227ceed Pull-request: https://github.com/SerenityOS/serenity/pull/16577 Reviewed-by: https://github.com/trflynn89 ✅
@ -212,6 +212,7 @@ void SnakeGame::keydown_event(GUI::KeyEvent& event)
|
||||
queue_velocity(1, 0);
|
||||
break;
|
||||
default:
|
||||
event.ignore();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user