FullscreenUI: Fix keynav default in open-in-game-list mode

This commit is contained in:
Stenzek 2025-03-28 20:44:50 +10:00
parent f36062a94e
commit e4a028834a
No known key found for this signature in database

View File

@ -7706,6 +7706,9 @@ void FullscreenUI::DrawGameList(const ImVec2& heading_size)
HandleGameListOptions(selected_entry); HandleGameListOptions(selected_entry);
} }
} }
if (entry == s_state.game_list_sorted_entries.front())
ImGui::SetItemDefaultFocus();
} }
EndMenuButtons(); EndMenuButtons();
@ -8011,6 +8014,9 @@ void FullscreenUI::DrawGameGrid(const ImVec2& heading_size)
} }
} }
if (entry == s_state.game_list_sorted_entries.front())
ImGui::SetItemDefaultFocus();
grid_x++; grid_x++;
if (grid_x == grid_count_x) if (grid_x == grid_count_x)
{ {