Skip to content

Commit 164a665

Browse files
committed
Cleanup diff
1 parent 6cd9d8d commit 164a665

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Files.App/UserControls/NavigationToolbar.xaml.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -428,19 +428,19 @@ private void BreadcrumbBar_ItemDropDownFlyoutClosed(object sender, BreadcrumbBar
428428
e.Flyout.Items.Clear();
429429
}
430430

431+
private void Omnibar_LostFocus(object sender, RoutedEventArgs e)
432+
{
433+
// Reset to the default mode when Omnibar loses focus
434+
Omnibar.CurrentSelectedMode = Omnibar.Modes?.FirstOrDefault();
435+
}
436+
431437
private void Omnibar_ModeChanged(object sender, OmnibarModeChangedEventArgs e)
432438
{
433439
// Reset the command palette text when switching modes
434440
if (Omnibar.CurrentSelectedMode == OmnibarCommandPaletteMode)
435441
ViewModel.OmnibarCommandPaletteModeText = string.Empty;
436442
}
437443

438-
private void Omnibar_LostFocus(object sender, RoutedEventArgs e)
439-
{
440-
// Reset to the default mode when Omnibar loses focus
441-
Omnibar.CurrentSelectedMode = Omnibar.Modes?.FirstOrDefault();
442-
}
443-
444444
private async void Omnibar_PreviewKeyDown(object sender, KeyRoutedEventArgs e)
445445
{
446446
if (e.Key is VirtualKey.Escape)

0 commit comments

Comments
 (0)