File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
src/Files.App/Views/Layouts Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -670,10 +670,18 @@ checkBox.DataContext is ListedItem item &&
670
670
671
671
private void ItemSelected_Unchecked ( object sender , RoutedEventArgs e )
672
672
{
673
- if ( sender is CheckBox checkBox &&
674
- checkBox . DataContext is ListedItem item &&
675
- FileList . SelectedItems . Contains ( item ) )
676
- FileList . SelectedItems . Remove ( item ) ;
673
+ if ( sender is CheckBox checkBox )
674
+ {
675
+ if ( checkBox . DataContext is ListedItem item && FileList . SelectedItems . Contains ( item ) )
676
+ FileList . SelectedItems . Remove ( item ) ;
677
+
678
+ // Workaround for #17298
679
+ checkBox . IsTabStop = false ;
680
+ checkBox . IsEnabled = false ;
681
+ checkBox . IsEnabled = true ;
682
+ checkBox . IsTabStop = true ;
683
+ FileList . Focus ( FocusState . Programmatic ) ;
684
+ }
677
685
}
678
686
679
687
private new void FileList_ContainerContentChanging ( ListViewBase sender , ContainerContentChangingEventArgs args )
You can’t perform that action at this time.
0 commit comments