Task-number: 257868
Reviewed-by: kh
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) {
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);