File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/Files.App/Views/Layouts Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -526,7 +526,10 @@ navigationArguments.SelectItems is not null &&
526
526
] ;
527
527
528
528
ItemManipulationModel . SetSelectedItems ( listedItemsToSelect ) ;
529
- ItemManipulationModel . FocusSelectedItems ( ) ;
529
+
530
+ // Don't focus file list if TextBox is focused
531
+ if ( FocusManager . GetFocusedElement ( ) is not TextBox )
532
+ ItemManipulationModel . FocusSelectedItems ( ) ;
530
533
}
531
534
else if ( navigationArguments is not null && ParentShellPageInstance ! . InstanceViewModel . FolderSettings . LayoutMode is not FolderLayoutModes . ColumnView )
532
535
{
@@ -535,7 +538,9 @@ navigationArguments.SelectItems is not null &&
535
538
await Task . Delay ( 100 ) ;
536
539
537
540
// Focus on the active pane in case it was lost during navigation
538
- ParentShellPageInstance ! . PaneHolder . FocusActivePane ( ) ;
541
+ // Don't focus file list if TextBox is focused
542
+ if ( FocusManager . GetFocusedElement ( ) is not TextBox )
543
+ ParentShellPageInstance ! . PaneHolder . FocusActivePane ( ) ;
539
544
}
540
545
}
541
546
catch ( Exception ) { }
You can’t perform that action at this time.
0 commit comments