mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
[WebView] Added Ctrl/Shift + Insert shortcuts to copy/paste.
This commit is contained in:
parent
e05595f6b2
commit
19adf74dc5
@ -1350,6 +1350,19 @@ void WebView::keyPressEvent(QKeyEvent* event)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Qt::Key_Insert:
|
||||||
|
if (event->modifiers() == Qt::ControlModifier) {
|
||||||
|
triggerPageAction(QWebPage::Copy);
|
||||||
|
event->accept();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (event->modifiers() == Qt::ShiftModifier) {
|
||||||
|
triggerPageAction(QWebPage::Paste);
|
||||||
|
event->accept();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user