using Avalonia.Controls;
using Avalonia.Input;
namespace DodoSSH.Client.App.Views;
///
/// The vault screen: everything in the vault that is not a host.
///
///
/// Its data context is the VaultViewModel, the same object the host sidebar binds to. Two views over
/// one vault rather than two view models, because the two show different projections of the same four lists
/// and a second view model would have to keep a copy of them in step.
///
internal sealed partial class KeychainScreen : UserControl
{
public KeychainScreen() => InitializeComponent();
/// Where the keyboard lands when this screen is the one showing.
///
/// One list, unlike the host sidebar, because the categories are a projection of the same table rather
/// than four separate ones — so there is only ever one control here that could take it.
///
internal IInputElement KeyboardTarget => ItemList;
}