summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorJunior Rantila <junior.rantila@gmail.com>2022-08-06 01:29:58 +0200
committerSam Atkins <atkinssj@gmail.com>2022-08-10 08:42:53 +0100
commit9c42a7538116ba090f406eb15b08520aeb9cf422 (patch)
tree8dd5f487244a0d11eead7fa67702dad4920b8b7b /Userland
parentd40b0439d8fa3c911041dc4c3e1d80c1519a2d77 (diff)
downloadserenity-9c42a7538116ba090f406eb15b08520aeb9cf422.zip
HackStudio: Add fullscreen shortcut
Diffstat (limited to 'Userland')
-rw-r--r--Userland/DevTools/HackStudio/HackStudioWidget.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
index 4dda8feae5..e4a3127501 100644
--- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp
+++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
@@ -1515,6 +1515,12 @@ void HackStudioWidget::create_view_menu(GUI::Window& window)
current_editor_wrapper().search_action();
});
view_menu.add_action(search_action);
+
+ view_menu.add_separator();
+
+ view_menu.add_action(GUI::CommonActions::make_fullscreen_action([&](auto&) {
+ window.set_fullscreen(!window.is_fullscreen());
+ }));
}
void HackStudioWidget::create_help_menu(GUI::Window& window)