fix disabling final confirmation word.
MODIFY
WalletWasabi.Fluent/Behaviors/FocusNextItemBehavior.cs
WalletWasabi.Fluent/Behaviors/FocusNextItemBehavior.cs
using Avalonia;
using Avalonia.Controls;
using Avalonia.LogicalTree;
-using Avalonia.VisualTree;
using ReactiveUI;
using System;
using System.Reactive.Disposables;
@@ -27,7 +26,7 @@ namespace WalletWasabi.Fluent.Behaviors
.Subscribe(
_ =>
{
- var parentControl = AssociatedObject.FindAncestorOfType<ItemsControl>();
+ var parentControl = AssociatedObject.FindLogicalAncestorOfType<ItemsControl>();
if (parentControl is { })
{
@@ -42,7 +41,7 @@ namespace WalletWasabi.Fluent.Behaviors
}
}
- AssociatedObject?.Focus();
+ parentControl.Focus();
}
})
.DisposeWith(disposables);

fix disabling final confirmation word.