Skip to content

Commit 5bb7b26

Browse files
committed
Revert "Code Quality: Fixed issue where text input lost focus on navigation"
This reverts commit 197895e.
1 parent 197895e commit 5bb7b26

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Files.App/Views/Layouts/BaseLayoutPage.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -526,10 +526,7 @@ navigationArguments.SelectItems is not null &&
526526
];
527527

528528
ItemManipulationModel.SetSelectedItems(listedItemsToSelect);
529-
530-
// Don't focus file list if TextBox is focused
531-
if (FocusManager.GetFocusedElement() is not TextBox)
532-
ItemManipulationModel.FocusSelectedItems();
529+
ItemManipulationModel.FocusSelectedItems();
533530
}
534531
else if (navigationArguments is not null && ParentShellPageInstance!.InstanceViewModel.FolderSettings.LayoutMode is not FolderLayoutModes.ColumnView)
535532
{
@@ -538,9 +535,7 @@ navigationArguments.SelectItems is not null &&
538535
await Task.Delay(100);
539536

540537
// Focus on the active pane in case it was lost during navigation
541-
// Don't focus file list if TextBox is focused
542-
if (FocusManager.GetFocusedElement() is not TextBox)
543-
ParentShellPageInstance!.PaneHolder.FocusActivePane();
538+
ParentShellPageInstance!.PaneHolder.FocusActivePane();
544539
}
545540
}
546541
catch (Exception) { }

0 commit comments

Comments
 (0)