mirror of
https://github.com/stenzek/duckstation.git
synced 2026-07-11 01:24:11 +02:00
Qt: Fix keyboard navigation in game list after searching (#3753)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user