File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Files.App.Controls/Omnibar Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments