forked from qt-creator/qt-creator
Handle missing copy shortcut.
Task-number: 257868 Reviewed-by: kh
This commit is contained in:
@@ -309,6 +309,17 @@ void HelpViewer::home()
|
|||||||
setSource(homepage);
|
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)
|
void HelpViewer::wheelEvent(QWheelEvent *e)
|
||||||
{
|
{
|
||||||
if (e->modifiers() & Qt::ControlModifier) {
|
if (e->modifiers() & Qt::ControlModifier) {
|
||||||
|
@@ -105,7 +105,9 @@ Q_SIGNALS:
|
|||||||
void sourceChanged(const QUrl &);
|
void sourceChanged(const QUrl &);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void wheelEvent(QWheelEvent *);
|
void keyPressEvent(QKeyEvent *e);
|
||||||
|
|
||||||
|
void wheelEvent(QWheelEvent *e);
|
||||||
void mouseReleaseEvent(QMouseEvent *e);
|
void mouseReleaseEvent(QMouseEvent *e);
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user