Skip to content

Commit 7865b98

Browse files
committed
Fixed a flickering issue
1 parent e85d456 commit 7865b98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,11 @@ private void Omnibar_GotFocus(object sender, RoutedEventArgs e)
149149

150150
private void Omnibar_LostFocus(object sender, RoutedEventArgs e)
151151
{
152-
// Ignore when user clicks on the TextBox or OmnibarMode's button area, Omnibar still has focus
152+
// Ignore when user clicks on the TextBox or the button area of an OmnibarMode, Omnibar still has focus anyway
153153
if (e.OriginalSource.GetType() is not { } originalSourceType ||
154154
originalSourceType == typeof(TextBox) ||
155-
originalSourceType == typeof(OmnibarMode))
155+
originalSourceType == typeof(OmnibarMode) ||
156+
originalSourceType == typeof(Omnibar))
156157
return;
157158

158159
_isFocused = false;

0 commit comments

Comments
 (0)