Open the properties window when alt+enter is used on the game list

This commit is contained in:
Pokechu22 2021-03-18 21:51:24 -07:00
parent bc4d0b3ef8
commit e6bd7a8cd5

View File

@ -856,9 +856,16 @@ void GameList::ConsiderViewChange()
void GameList::keyPressEvent(QKeyEvent* event)
{
if (event->key() == Qt::Key_Return && GetSelectedGame() != nullptr)
emit GameSelected();
{
if (event->modifiers() == Qt::AltModifier)
OpenProperties();
else
emit GameSelected();
}
else
{
QStackedWidget::keyPressEvent(event);
}
}
void GameList::OnColumnVisibilityToggled(const QString& row, bool visible)