summaryrefslogtreecommitdiff
path: root/Userland/Applications/Browser/BrowserWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/Browser/BrowserWindow.cpp')
-rw-r--r--Userland/Applications/Browser/BrowserWindow.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Userland/Applications/Browser/BrowserWindow.cpp b/Userland/Applications/Browser/BrowserWindow.cpp
index b45fc44a0b..5838fd4265 100644
--- a/Userland/Applications/Browser/BrowserWindow.cpp
+++ b/Userland/Applications/Browser/BrowserWindow.cpp
@@ -189,6 +189,15 @@ void BrowserWindow::build_menus()
GUI::Clipboard::the().set_plain_text(selected_text);
});
+ m_select_all_action = GUI::CommonActions::make_select_all_action([this](auto&) {
+ auto& tab = active_tab();
+
+ if (tab.m_type == Tab::Type::InProcessWebView)
+ tab.m_page_view->select_all();
+ else
+ tab.m_web_content_view->select_all();
+ });
+
m_view_source_action = GUI::Action::create(
"View &Source", { Mod_Ctrl, Key_U }, [this](auto&) {
auto& tab = active_tab();