mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
WebView: Use Qt::Back/ForwardButton instead of XButton1/2
This commit is contained in:
parent
ab43af9958
commit
0bb78c8501
|
@ -1078,12 +1078,12 @@ void WebView::_mousePressEvent(QMouseEvent *event)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (event->button()) {
|
switch (event->button()) {
|
||||||
case Qt::XButton1:
|
case Qt::BackButton:
|
||||||
back();
|
back();
|
||||||
event->accept();
|
event->accept();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Qt::XButton2:
|
case Qt::ForwardButton:
|
||||||
forward();
|
forward();
|
||||||
event->accept();
|
event->accept();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user