summaryrefslogtreecommitdiff
path: root/Ladybird/Tab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Ladybird/Tab.cpp')
-rw-r--r--Ladybird/Tab.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Ladybird/Tab.cpp b/Ladybird/Tab.cpp
index b68c166bc9..d1430c0bbd 100644
--- a/Ladybird/Tab.cpp
+++ b/Ladybird/Tab.cpp
@@ -73,6 +73,14 @@ Tab::Tab(BrowserWindow* window)
m_hover_label->hide();
});
+ QObject::connect(m_view, &WebContentView::back_mouse_button, [this] {
+ back();
+ });
+
+ QObject::connect(m_view, &WebContentView::forward_mouse_button, [this] {
+ forward();
+ });
+
QObject::connect(m_view, &WebContentView::load_started, [this](const URL& url) {
m_location_edit->setText(url.to_string().characters());
m_history.push(url, m_title.toUtf8().data());