mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +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;
|
||||
|
||||
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:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user