From a8282c300e2016ce149645170e661df7f8bd1645 Mon Sep 17 00:00:00 2001 From: Yair <39923744+yaira2@users.noreply.github.com> Date: Wed, 23 Jul 2025 11:22:11 -0400 Subject: [PATCH] Fix: Fixed issue preventing file selection in folders containing a single item --- src/Files.App/Views/Layouts/DetailsLayoutPage.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Files.App/Views/Layouts/DetailsLayoutPage.xaml.cs b/src/Files.App/Views/Layouts/DetailsLayoutPage.xaml.cs index cfcce735fa10..40121e1ea23d 100644 --- a/src/Files.App/Views/Layouts/DetailsLayoutPage.xaml.cs +++ b/src/Files.App/Views/Layouts/DetailsLayoutPage.xaml.cs @@ -493,7 +493,9 @@ protected override async void FileList_PreviewKeyDown(object sender, KeyRoutedEv } else if (e.Key == VirtualKey.Down) { - if (isHeaderFocused) + // Focus the first item in the file list if Header header has focus, + // or if there is only one item in the file list (#13774) + if (isHeaderFocused || FileList.Items.Count == 1) { var selectIndex = FileList.SelectedIndex < 0 ? 0 : FileList.SelectedIndex; if (FileList.ContainerFromIndex(selectIndex) is ListViewItem item)