Skip to content

Commit eed7abe

Browse files
committed
When Command mode flyout is open, focusing elsewhere doesn't always close the flyout
1 parent ae591bc commit eed7abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private void AutoSuggestBox_GettingFocus(UIElement sender, GettingFocusEventArgs
2626

2727
private void AutoSuggestBox_LosingFocus(UIElement sender, LosingFocusEventArgs args)
2828
{
29-
if (IsModeButtonPressed)
29+
if (args.NewFocusedElement is Button && IsModeButtonPressed)
3030
{
3131
IsModeButtonPressed = false;
3232
args.TryCancel();

0 commit comments

Comments
 (0)