Qt: Fix keyboard navigation in game list after searching (#3753)

This commit is contained in:
Davide Pesavento
2026-06-20 23:45:09 -04:00
committed by GitHub
parent 0dd6e5cef7
commit c712c7b299
+1 -2
View File
@@ -2165,8 +2165,7 @@ void GameListWidget::onSearchReturnPressed()
QAbstractItemView* const target =
isShowingGameGrid() ? static_cast<QAbstractItemView*>(m_grid_view) : static_cast<QAbstractItemView*>(m_list_view);
target->selectionModel()->select(m_sort_model->index(0, 0),
QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
target->setCurrentIndex(m_sort_model->index(0, 0));
target->setFocus(Qt::ShortcutFocusReason);
}