1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 04:36:34 +01:00

Accept back and forward mouse button events

QtWebEngine engine seems to has its own binding for these buttons in the
mouse release event while Falkon mostly works with mousePress events.

This causes double action on the same button click.

BUG: 479550

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-01-10 00:54:10 +01:00
parent 9459599fb6
commit 08f7a45021
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -1117,6 +1117,11 @@ void WebView::_mouseReleaseEvent(QMouseEvent *event)
}
switch (event->button()) {
case Qt::BackButton:
case Qt::ForwardButton:
event->accept();
break;
case Qt::MiddleButton:
if (!m_clickedUrl.isEmpty()) {
const QUrl link = page()->hitTestContent(event->position().toPoint()).linkUrl();