feat: bind backward & forward mouse buttons to web history (#646)

This commit is contained in:
Antoine Goutenoir 2021-05-25 14:37:21 +02:00 committed by GitHub
parent 20a66f9f99
commit d89fc15a0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}