Commit 43a12b8d authored by kh's avatar kh
Browse files

Handle missing copy shortcut.

Task-number: 257868
	Reviewed-by: kh
parent b41d3a45
......@@ -309,6 +309,17 @@ void HelpViewer::home()
setSource(homepage);
}
// TODO: remove this once we support multiple keysequences per command
void HelpViewer::keyPressEvent(QKeyEvent *e)
{
if (e->key() == Qt::Key_Insert && e->modifiers() == Qt::CTRL) {
if (hasSelection())
copy();
}
QWebView::keyPressEvent(e);
}
void HelpViewer::wheelEvent(QWheelEvent *e)
{
if (e->modifiers() & Qt::ControlModifier) {
......
......@@ -105,7 +105,9 @@ Q_SIGNALS:
void sourceChanged(const QUrl &);
protected:
virtual void wheelEvent(QWheelEvent *);
void keyPressEvent(QKeyEvent *e);
void wheelEvent(QWheelEvent *e);
void mouseReleaseEvent(QMouseEvent *e);
void mousePressEvent(QMouseEvent *event);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment