summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/completionwidget.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-04-16 16:49:29 +0200
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-04-16 16:52:09 +0200
commitf069f1a66479bbb6e101c423b250caf0fbbdadfc (patch)
treee55b65794bc46ca659791470a5f672ccc923393b /src/plugins/texteditor/completionwidget.cpp
parent3057c6ecf7b40a7d2d6c4ec0cb07ee6cbcdc7ed7 (diff)
downloadqt-creator-f069f1a66479bbb6e101c423b250caf0fbbdadfc.tar.gz
Forward Home and End keys to the editor when completing
It's annoying and not very useful if they get grabbed and handled by the completion list. This happened as a side effect of fc1780f126415523f1298fdf8d73b6270fd970c2.
Diffstat (limited to 'src/plugins/texteditor/completionwidget.cpp')
-rw-r--r--src/plugins/texteditor/completionwidget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/texteditor/completionwidget.cpp b/src/plugins/texteditor/completionwidget.cpp
index 3fc70927ae..5575d9ad45 100644
--- a/src/plugins/texteditor/completionwidget.cpp
+++ b/src/plugins/texteditor/completionwidget.cpp
@@ -368,6 +368,9 @@ bool CompletionListView::event(QEvent *e)
case Qt::Key_Right:
case Qt::Key_Left:
+ case Qt::Key_Home:
+ case Qt::Key_End:
+ // We want these navigation keys to work in the editor, so forward them
break;
case Qt::Key_Tab: