mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
focus yubikey token entry
This commit is contained in:
parent
5ce2eaf77e
commit
ca27b34122
2 changed files with 6 additions and 1 deletions
|
@ -68,6 +68,7 @@
|
||||||
<StackLayout StyleClass="box">
|
<StackLayout StyleClass="box">
|
||||||
<StackLayout StyleClass="box-row, box-row-input">
|
<StackLayout StyleClass="box-row, box-row-input">
|
||||||
<Entry
|
<Entry
|
||||||
|
x:Name="_yubikeyTokenEntry"
|
||||||
Text="{Binding Token}"
|
Text="{Binding Token}"
|
||||||
StyleClass="box-value"
|
StyleClass="box-value"
|
||||||
ReturnType="Go"
|
ReturnType="Go"
|
||||||
|
|
|
@ -70,10 +70,14 @@ namespace Bit.App.Pages
|
||||||
await LoadOnAppearedAsync(_scrollView, true, () =>
|
await LoadOnAppearedAsync(_scrollView, true, () =>
|
||||||
{
|
{
|
||||||
_vm.Init();
|
_vm.Init();
|
||||||
if(_vm.TotpMethod || _vm.YubikeyMethod)
|
if(_vm.TotpMethod)
|
||||||
{
|
{
|
||||||
RequestFocus(_totpEntry);
|
RequestFocus(_totpEntry);
|
||||||
}
|
}
|
||||||
|
else if(_vm.YubikeyMethod)
|
||||||
|
{
|
||||||
|
RequestFocus(_yubikeyTokenEntry);
|
||||||
|
}
|
||||||
return Task.FromResult(0);
|
return Task.FromResult(0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue