diff --git a/Source/Core/DolphinQt2/GameList/GameList.cpp b/Source/Core/DolphinQt2/GameList/GameList.cpp index 0f2fb89487..aae748708c 100644 --- a/Source/Core/DolphinQt2/GameList/GameList.cpp +++ b/Source/Core/DolphinQt2/GameList/GameList.cpp @@ -4,6 +4,7 @@ #include #include +#include #include #include @@ -161,3 +162,10 @@ void GameList::ConsiderViewChange() setCurrentWidget(m_empty); } } +void GameList::keyReleaseEvent(QKeyEvent* event) +{ + if (event->key() == Qt::Key_Return) + emit GameSelected(); + else + QStackedWidget::keyReleaseEvent(event); +} diff --git a/Source/Core/DolphinQt2/GameList/GameList.h b/Source/Core/DolphinQt2/GameList/GameList.h index 32c8c2292d..bb33642413 100644 --- a/Source/Core/DolphinQt2/GameList/GameList.h +++ b/Source/Core/DolphinQt2/GameList/GameList.h @@ -52,4 +52,6 @@ private: QTableView* m_table; QLabel* m_empty; bool m_prefer_table; +protected: + void keyReleaseEvent(QKeyEvent* event) override; };