diff --git a/Source/Core/DolphinQt2/GameList/GameList.cpp b/Source/Core/DolphinQt2/GameList/GameList.cpp index 5927be5a4d..0f57416e5d 100644 --- a/Source/Core/DolphinQt2/GameList/GameList.cpp +++ b/Source/Core/DolphinQt2/GameList/GameList.cpp @@ -4,6 +4,7 @@ #include #include +#include #include #include @@ -164,3 +165,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 7508cdb641..0f0d8aea4d 100644 --- a/Source/Core/DolphinQt2/GameList/GameList.h +++ b/Source/Core/DolphinQt2/GameList/GameList.h @@ -55,4 +55,6 @@ private: QTableView* m_table; QLabel* m_empty; bool m_prefer_table; +protected: + void keyReleaseEvent(QKeyEvent* event) override; };