1
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:
nowrep 2013-05-19 10:22:40 +02:00
parent e05595f6b2
commit 19adf74dc5

View File

@ -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;
}