Skip to content

Commit 7f52809

Browse files
Code Quality: Fixed issue with clicking search box (#13158)
Co-authored-by: hishitetsu <66369541+hishitetsu@users.noreply.github.com>
1 parent 311b380 commit 7f52809

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,8 @@ private void SetToolTip(TextBlock textBlock)
880880
private void FileList_LosingFocus(UIElement sender, LosingFocusEventArgs args)
881881
{
882882
// Fixes an issue where clicking an empty space would scroll to the top of the file list
883-
args.TryCancel();
883+
if (args.NewFocusedElement == FileList)
884+
args.TryCancel();
884885
}
885886
}
886887
}

0 commit comments

Comments
 (0)