summaryrefslogtreecommitdiffstats
path: root/konqueror/konq_mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konqueror/konq_mainwindow.cpp')
-rw-r--r--konqueror/konq_mainwindow.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/konqueror/konq_mainwindow.cpp b/konqueror/konq_mainwindow.cpp
index 01cbf5a52..1905f5771 100644
--- a/konqueror/konq_mainwindow.cpp
+++ b/konqueror/konq_mainwindow.cpp
@@ -3580,6 +3580,22 @@ bool KonqMainWindow::eventFilter(TQObject*obj,TQEvent *ev)
}
}
}
+
+ else if (ev->type() == TQEvent::MouseButtonRelease)
+ {
+ TQMouseEvent *mouseEv = static_cast<TQMouseEvent*>(ev);
+ switch (mouseEv->button())
+ {
+ case TQMouseEvent::HistoryBackButton:
+ slotBack();
+ return true;
+
+ case TQMouseEvent::HistoryForwardButton:
+ slotForward();
+ return true;
+ }
+ }
+
return KParts::MainWindow::eventFilter( obj, ev );
}