Skip to content

Commit 1071d22

Browse files
yaira20x5bfa
andauthored
Update src/Files.App/Views/Shells/ModernShellPage.xaml.cs
Co-authored-by: 0x5BFA <[email protected]> Signed-off-by: Yair <[email protected]>
1 parent 3c240bb commit 1071d22

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Files.App/Views/Shells/ModernShellPage.xaml.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,7 @@ private async void FilterTextBox_TextChanged(AutoSuggestBox sender, AutoSuggestB
370370
private void FilterTextBox_PreviewKeyDown(object sender, KeyRoutedEventArgs e)
371371
{
372372
if (e.Key is VirtualKey.Escape &&
373-
SlimContentPage is BaseGroupableLayoutPage svb &&
374-
svb.IsLoaded)
373+
SlimContentPage is BaseGroupableLayoutPage { IsLoaded: true } svb)
375374
SlimContentPage.ItemManipulationModel.FocusFileList();
376375
}
377376
}

0 commit comments

Comments
 (0)