mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -08:00
Set default focus on password text box (#644)
Co-authored-by: AleksandrLiakhavetsEPAM <97155822+AleksandrLiakhavetsEPAM@users.noreply.github.com>
This commit is contained in:
parent
1fecbbb37f
commit
794163fe1c
2 changed files with 9 additions and 1 deletions
|
@ -39,9 +39,11 @@
|
||||||
<TextBlock Text="{Binding Description}" TextWrapping="Wrap"/>
|
<TextBlock Text="{Binding Description}" TextWrapping="Wrap"/>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
<TextBox Margin="16"
|
<TextBox Name="PassphraseTextBox"
|
||||||
|
Margin="16"
|
||||||
MinWidth="300"
|
MinWidth="300"
|
||||||
Height="32"
|
Height="32"
|
||||||
|
Focusable="True"
|
||||||
Text="{Binding Passphrase, Mode=TwoWay}"
|
Text="{Binding Passphrase, Mode=TwoWay}"
|
||||||
PasswordChar="*"
|
PasswordChar="*"
|
||||||
RevealPassword="{Binding ShowPassword, Mode=OneWay}"
|
RevealPassword="{Binding ShowPassword, Mode=OneWay}"
|
||||||
|
|
|
@ -52,5 +52,11 @@ namespace SourceGit.Views
|
||||||
Console.Out.Write($"{Passphrase}\n");
|
Console.Out.Write($"{Passphrase}\n");
|
||||||
App.Quit(0);
|
App.Quit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void OnOpened(EventArgs e)
|
||||||
|
{
|
||||||
|
PassphraseTextBox.Focus();
|
||||||
|
base.OnOpened(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue