request focus on email field for hint page

This commit is contained in:
Kyle Spearrin 2019-06-04 23:16:57 -04:00
parent b29ccf67b1
commit dbc750b44e
2 changed files with 7 additions and 0 deletions

View file

@ -23,6 +23,7 @@
Text="{u:I18n EmailAddress}" Text="{u:I18n EmailAddress}"
StyleClass="box-label" /> StyleClass="box-label" />
<Entry <Entry
x:Name="_email"
Text="{Binding Email}" Text="{Binding Email}"
Keyboard="Email" Keyboard="Email"
StyleClass="box-value" StyleClass="box-value"

View file

@ -13,6 +13,12 @@ namespace Bit.App.Pages
_vm.Page = this; _vm.Page = this;
} }
protected override void OnAppearing()
{
base.OnAppearing();
RequestFocus(_email);
}
private async void Submit_Clicked(object sender, EventArgs e) private async void Submit_Clicked(object sender, EventArgs e)
{ {
if(DoOnce()) if(DoOnce())