Focus the expected controls
MODIFY
WalletWasabi.Fluent/AddWallet/Common/EnterPasswordViewModel.cs
WalletWasabi.Fluent/AddWallet/Common/EnterPasswordViewModel.cs
using ReactiveUI;
using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
using System.Reactive.Linq;
using System.Windows.Input;
using WalletWasabi.Blockchain.Keys;

MODIFY
WalletWasabi.Fluent/AddWallet/CreateWallet/ConfirmRecoveryWordsView.axaml
WalletWasabi.Fluent/AddWallet/CreateWallet/ConfirmRecoveryWordsView.axaml
</c:ContentArea>
<Button Content="Cancel" Command="{Binding CancelCommand}" Classes="invisible" HorizontalAlignment="Left" VerticalAlignment="Bottom" />
- <Button Content="Finish" Command="{Binding FinishCommand}" Classes="action" HorizontalAlignment="Right" VerticalAlignment="Bottom" />
+ <Button Content="Finish" Command="{Binding FinishCommand}" Classes="action" HorizontalAlignment="Right" VerticalAlignment="Bottom">
+ <i:Interaction.Behaviors>
+ <behaviors:FocusOnEnableBehavior />
+ </i:Interaction.Behaviors>
+ </Button>
</Panel>
</UserControl>
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/AddWallet/CreateWallet/RecoveryWordsView.axaml
WalletWasabi.Fluent/AddWallet/CreateWallet/RecoveryWordsView.axaml
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:c="clr-namespace:WalletWasabi.Fluent.Controls"
mc:Ignorable="d"
+ xmlns:behaviors="clr-namespace:WalletWasabi.Fluent.Behaviors;assembly=WalletWasabi.Fluent"
+ xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
d:DesignWidth="600" d:DesignHeight="500"
x:Class="WalletWasabi.Fluent.AddWallet.CreateWallet.RecoveryWordsView">
<Panel>
</c:ContentArea>
<Button Content="Cancel" Command="{Binding CancelCommand}" Classes="invisible" HorizontalAlignment="Left" VerticalAlignment="Bottom" />
- <Button Content="Continue" Command="{Binding ContinueCommand}" Classes="action" HorizontalAlignment="Right" VerticalAlignment="Bottom" />
+ <Button Content="Continue" Command="{Binding ContinueCommand}" Classes="action" HorizontalAlignment="Right" VerticalAlignment="Bottom">
+ <i:Interaction.Behaviors>
+ <behaviors:FocusOnAttachedBehavior />
+ </i:Interaction.Behaviors>
+ </Button>
</Panel>
</UserControl>
\ No newline at end of file

ADD
WalletWasabi.Fluent/Behaviors/FocusOnEnableBehavior.cs
+using Avalonia;
+using Avalonia.Controls;
+using Avalonia.Xaml.Interactivity;
+using System;
+using System.Reactive.Linq;
+
+namespace WalletWasabi.Fluent.Behaviors
+{
+ public class FocusOnEnableBehavior : Behavior<Control>
+ {
+ protected override void OnAttached()
+ {
+ base.OnAttached();
+
+ Observable.
+ FromEventPattern<AvaloniaPropertyChangedEventArgs>(AssociatedObject, nameof(AssociatedObject.PropertyChanged))
+ .Where(x => x.EventArgs.Property.Name == nameof(AssociatedObject.IsEffectivelyEnabled) && x.EventArgs.NewValue is { } newValue && (bool)newValue == true)
+ .Subscribe(_ => AssociatedObject!.Focus());
+ }
+
+ protected override void OnDetaching()
+ {
+ base.OnDetaching();
+ }
+ }
+}
\ No newline at end of file

Focus the expected controls