diff --git a/Userland/Games/GameOfLife/main.cpp b/Userland/Games/GameOfLife/main.cpp index 1b2ea8e37d..fab07031db 100644 --- a/Userland/Games/GameOfLife/main.cpp +++ b/Userland/Games/GameOfLife/main.cpp @@ -63,6 +63,8 @@ ErrorOr serenity_main(Main::Arguments arguments) auto& board_widget_container = *main_widget->find_descendant_of_type_named("board_widget_container"); board_widget_container.set_layout(GUI::Margins {}, 0); auto& board_widget = board_widget_container.add(board_rows, board_columns); + board_widget.set_focus_policy(GUI::FocusPolicy::StrongFocus); + board_widget.set_focus(true); board_widget.randomize_cells(); board_widget.set_min_size(board_columns, board_rows);