diff options
| author | Léo Lam <leo@leolam.fr> | 2020-04-27 17:00:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-27 17:00:58 +0200 |
| commit | 1ca682e6a19f6e41787fbe8c2e9bccfbd50fd958 (patch) | |
| tree | 1457435f38b0e0078c5fe40e9e04ba7d6ec8274a /Source/Core | |
| parent | 71f409dac49b3d9105e33f2bb7ea2ddea794e562 (diff) | |
| parent | 74d8697ea349750116fa1434f1b00008fdbfe9b6 (diff) | |
Merge pull request #8723 from seanyeh/fix-confirm-dialog-enter
Qt/GameList: Use KeyPress instead of KeyRelease
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/GameList/GameList.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/DolphinQt/GameList/GameList.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameList.cpp b/Source/Core/DolphinQt/GameList/GameList.cpp index a635bee291..af3b13ab79 100644 --- a/Source/Core/DolphinQt/GameList/GameList.cpp +++ b/Source/Core/DolphinQt/GameList/GameList.cpp @@ -917,12 +917,12 @@ void GameList::ConsiderViewChange() setCurrentWidget(m_empty); } } -void GameList::keyReleaseEvent(QKeyEvent* event) +void GameList::keyPressEvent(QKeyEvent* event) { if (event->key() == Qt::Key_Return && GetSelectedGame() != nullptr) emit GameSelected(); else - QStackedWidget::keyReleaseEvent(event); + QStackedWidget::keyPressEvent(event); } void GameList::OnColumnVisibilityToggled(const QString& row, bool visible) diff --git a/Source/Core/DolphinQt/GameList/GameList.h b/Source/Core/DolphinQt/GameList/GameList.h index 596c92f57e..5192e89230 100644 --- a/Source/Core/DolphinQt/GameList/GameList.h +++ b/Source/Core/DolphinQt/GameList/GameList.h @@ -94,5 +94,5 @@ private: bool m_prefer_list; protected: - void keyReleaseEvent(QKeyEvent* event) override; + void keyPressEvent(QKeyEvent* event) override; }; |
