Desktop: give the host-key, delete and sign-out questions the keyboard on their harmless answer, and let Escape say no

This commit is contained in:
jaap-jan committed 2026-10-02 13:45:40 +02:00
1 parent 372a7cbdc7
commit 6c09bdecb6
11 files changed
+498 -92

No files matched your search

@@ -1,9 +1,15 @@
using Avalonia.Controls;
using DodoSSH.Client.Shell.ViewModels;
namespace DodoSSH.Client.App.Views;
/// <summary>The sign-out confirmation, shown on the preferences screen and on the unlock screen.</summary>
internal sealed partial class SignOutCard : UserControl
{
public SignOutCard() => InitializeComponent();
public SignOutCard()
{
InitializeComponent();
SafeAnswerFocus.Follow(this, nameof(MainWindowViewModel.IsConfirmingSignOut), () => CancelButton);
}
}