diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-11-11 13:46:22 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-11 22:03:23 +0000 |
commit | 7f142745e27d063c454e427bf718985b5a7cfb25 (patch) | |
tree | 9ea74a6d248d57747faf5333a21829eef4a8f7cf /Userland/Applications/Browser/Tab.cpp | |
parent | 24fb7cd0ad23b5501ec6f0f713421101995f78bd (diff) | |
download | serenity-7f142745e27d063c454e427bf718985b5a7cfb25.zip |
Browser+WebContent+WebDriver: Move Back, Forward, Refresh to WebContent
Diffstat (limited to 'Userland/Applications/Browser/Tab.cpp')
-rw-r--r-- | Userland/Applications/Browser/Tab.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Userland/Applications/Browser/Tab.cpp b/Userland/Applications/Browser/Tab.cpp index 9ee6866b29..e78e2c3091 100644 --- a/Userland/Applications/Browser/Tab.cpp +++ b/Userland/Applications/Browser/Tab.cpp @@ -236,6 +236,18 @@ Tab::Tab(BrowserWindow& window) m_web_content_view->inspect_dom_tree(); }; + view().on_navigate_back = [this]() { + go_back(1); + }; + + view().on_navigate_forward = [this]() { + go_forward(1); + }; + + view().on_refresh = [this]() { + reload(); + }; + view().on_link_click = [this](auto& url, auto& target, unsigned modifiers) { if (target == "_blank" || modifiers == Mod_Ctrl) { on_tab_open_request(url); |