Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #8723 from seanyeh/fix-confirm-dialog-enter
Qt/GameList: Use KeyPress instead of KeyRelease
  • Loading branch information
leoetlino committed Apr 27, 2020
2 parents 71f409d + 74d8697 commit 1ca682e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Core/DolphinQt/GameList/GameList.cpp
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DolphinQt/GameList/GameList.h
Expand Up @@ -94,5 +94,5 @@ class GameList final : public QStackedWidget
bool m_prefer_list;

protected:
void keyReleaseEvent(QKeyEvent* event) override;
void keyPressEvent(QKeyEvent* event) override;
};

0 comments on commit 1ca682e

Please sign in to comment.