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:
parent
9459599fb6
commit
08f7a45021
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user