mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 19:46:12 -04:00
feat: bind backward & forward mouse buttons to web history (#646)
This commit is contained in:
parent
20a66f9f99
commit
d89fc15a0d
@ -112,6 +112,16 @@ bool WebView::eventFilter(QObject *src, QEvent *e)
|
||||
QDesktopServices::openUrl(m_linkHovered);
|
||||
return true;
|
||||
}
|
||||
if (me->button() == Qt::BackButton)
|
||||
{
|
||||
back();
|
||||
return true;
|
||||
}
|
||||
if (me->button() == Qt::ForwardButton)
|
||||
{
|
||||
forward();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user