Skip to content

Commit 7c2ee6d

Browse files
committed
Fix 'When using Edit path mode, switching tabs and then switching back reopens the Omnibar flyout'
1 parent ae591bc commit 7c2ee6d

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/Files.App.Controls/Omnibar/Omnibar.Events.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ private void AutoSuggestBox_GettingFocus(UIElement sender, GettingFocusEventArgs
2424
_previouslyFocusedElement = new(args.OldFocusedElement as UIElement);
2525
}
2626

27-
private void AutoSuggestBox_LosingFocus(UIElement sender, LosingFocusEventArgs args)
28-
{
29-
if (IsModeButtonPressed)
30-
{
31-
IsModeButtonPressed = false;
32-
args.TryCancel();
33-
return;
34-
}
35-
}
36-
3727
private void AutoSuggestBox_GotFocus(object sender, RoutedEventArgs e)
3828
{
3929
GlobalHelper.WriteDebugStringForOmnibar("The TextBox got the focus.");

src/Files.App.Controls/Omnibar/Omnibar.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ protected override void OnApplyTemplate()
7777
SizeChanged += Omnibar_SizeChanged;
7878
_textBox.GettingFocus += AutoSuggestBox_GettingFocus;
7979
_textBox.GotFocus += AutoSuggestBox_GotFocus;
80-
_textBox.LosingFocus += AutoSuggestBox_LosingFocus;
8180
_textBox.LostFocus += AutoSuggestBox_LostFocus;
8281
_textBox.KeyDown += AutoSuggestBox_KeyDown;
8382
_textBox.TextChanged += AutoSuggestBox_TextChanged;

0 commit comments

Comments
 (0)