Fix for focus loss after window becomes inactive
MODIFY
WalletWasabi.Fluent/Behaviors/SearchBarBehavior.cs
WalletWasabi.Fluent/Behaviors/SearchBarBehavior.cs
@@ -67,18 +67,6 @@ public class SearchBarBehavior : AttachedToVisualTreeBehavior<Control>
.DisposeWith(disposables);
}
- if (visualRoot is WindowBase window)
- {
- Observable
- .FromEventPattern(window, nameof(WindowBase.Deactivated))
- .Subscribe(_ =>
- {
- FocusManager.Instance?.Focus(null);
- HideFlyout();
- })
- .DisposeWith(disposables);
- }
-
if (SearchBox is { } && SearchPanel is { })
{
Observable

Fix for focus loss after window becomes inactive