summaryrefslogtreecommitdiff
path: root/Userland/Games/BrickGame/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Games/BrickGame/main.cpp')
-rw-r--r--Userland/Games/BrickGame/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Games/BrickGame/main.cpp b/Userland/Games/BrickGame/main.cpp
index 3c81af6de0..bd14504bc8 100644
--- a/Userland/Games/BrickGame/main.cpp
+++ b/Userland/Games/BrickGame/main.cpp
@@ -56,6 +56,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(game_menu->try_add_action(GUI::Action::create("&New Game", { Mod_None, Key_F2 }, TRY(Gfx::Bitmap::load_from_file("/res/icons/16x16/reload.png"sv)), [&](auto&) {
game->reset();
})));
+ TRY(game_menu->try_add_action(GUI::Action::create("Toggle &pause", { Mod_None, Key_P }, [&](auto&) {
+ game->toggle_pause();
+ })));
TRY(game_menu->try_add_separator());
TRY(game_menu->try_add_action(GUI::CommonActions::make_quit_action([](auto&) {
GUI::Application::the()->quit();