Skip to content

Commit 19a66dc

Browse files
committed
Update ShellPanesPage.xaml.cs
1 parent b52866b commit 19a66dc

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Files.App/Views/ShellPanesPage.xaml.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -647,13 +647,9 @@ private void Pane_Loaded(object sender, RoutedEventArgs e)
647647

648648
private void Pane_GettingFocus(UIElement sender, GettingFocusEventArgs args)
649649
{
650-
try
651-
{
652-
// Workaround for https://github.com/files-community/Files/issues/15397
653-
if (args?.NewFocusedElement is not null && args.NewFocusedElement is not (ListViewItem or GridViewItem or ListView or GridView))
654-
args.TryCancel();
655-
}
656-
catch (Exception) { }
650+
// Workaround for https://github.com/files-community/Files/issues/15397
651+
if (args?.NewFocusedElement is not null && args.NewFocusedElement is not (ListViewItem or GridViewItem or ListView or GridView))
652+
args.TryCancel();
657653
}
658654

659655
private void Pane_ContentChanged(object? sender, TabBarItemParameter e)

0 commit comments

Comments
 (0)