mirror of
https://github.com/KeyKeeperApp/KeyKeeper.git
synced 2026-04-17 18:16:28 +03:00
the unlock password text box now takes focus automatically
This commit is contained in:
@@ -153,7 +153,8 @@
|
||||
<TextBox x:Name="UnlockPasswordEdit"
|
||||
Text="{Binding UnlockPassword, Mode=TwoWay}"
|
||||
PasswordChar="*"
|
||||
Width="450" />
|
||||
Width="450"
|
||||
Loaded="UnlockPasswordEdit_Loaded" />
|
||||
|
||||
<Button x:Name="UnlockButton"
|
||||
Command="{Binding TryUnlock}"
|
||||
|
||||
@@ -39,6 +39,11 @@ public partial class RepositoryWindow : Window
|
||||
vm.ResetLockTimer();
|
||||
}
|
||||
|
||||
private void UnlockPasswordEdit_Loaded(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
(sender as TextBox)?.Focus();
|
||||
}
|
||||
|
||||
private async void RepositoryWindow_Closing(object? sender, WindowClosingEventArgs e)
|
||||
{
|
||||
if (allowClose || closeConfirmationShown)
|
||||
|
||||
Reference in New Issue
Block a user