Skip to content

Commit df35fe9

Browse files
committed
Code Quality: Fix Pane_GettingFocus
1 parent 575d5b1 commit df35fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ private void Pane_Loaded(object sender, RoutedEventArgs e)
657657
private void Pane_GettingFocus(UIElement sender, GettingFocusEventArgs args)
658658
{
659659
// Workaround for https://github.com/files-community/Files/issues/15397
660-
if (args?.NewFocusedElement is not null && args.NewFocusedElement is not (ListViewItem or GridViewItem or ListView or GridView or TextBox))
660+
if (IsMultiPaneActive && args?.NewFocusedElement is not null && args.NewFocusedElement is not (ListViewItem or GridViewItem or ListView or GridView or TextBox))
661661
args.TryCancel();
662662
}
663663

0 commit comments

Comments
 (0)