diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index 8419771ed..6d09f48b8 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -66,6 +66,14 @@ ResultsTree::~ResultsTree() { } +void ResultsTree::keyPressEvent(QKeyEvent *event) +{ + if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) { + QuickStartApplication(this->currentIndex()); + } + QTreeView::keyPressEvent(event); +} + void ResultsTree::Initialize(QSettings *settings, ApplicationList *list) { mSettings = settings; diff --git a/gui/resultstree.h b/gui/resultstree.h index f7d882b3f..79d23c36a 100644 --- a/gui/resultstree.h +++ b/gui/resultstree.h @@ -162,6 +162,7 @@ public: */ ShowTypes mShowSeverities; + virtual void keyPressEvent(QKeyEvent *event); signals: /**