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