using Avalonia.Controls;

namespace DodoSSH.Client.App.Views;

/// <summary>The unlock screen's contents.</summary>
internal sealed partial class UnlockCard : UserControl
{
    public UnlockCard() => InitializeComponent();

    /// <summary>
    /// Where the keyboard goes when the vault is locked.
    /// </summary>
    /// <remarks>
    /// Exposed the way <see cref="HostsScreen.KeyboardTarget"/> is, and for the same reason: the window
    /// owns the focus policy — it has to take the keyboard off the terminal's native child window first —
    /// and the control it hands it to belongs to whichever screen is showing.
    /// </remarks>
    internal TextBox PassphraseBox => UnlockPassphrase;
}
