diff --git a/src/App/Pages/Accounts/LoginPage.xaml b/src/App/Pages/Accounts/LoginPage.xaml index 9b8d058c9..603066461 100644 --- a/src/App/Pages/Accounts/LoginPage.xaml +++ b/src/App/Pages/Accounts/LoginPage.xaml @@ -56,7 +56,9 @@ StyleClass="box-value" IsPassword="{Binding ShowPassword, Converter={StaticResource inverseBool}}" Grid.Row="1" - Grid.Column="0" /> + Grid.Column="0" + ReturnType="Go" + ReturnCommand="{Binding LogInCommand}" /> _masterPassword.Focus()); } public Entry MasterPasswordEntry { get; set; } diff --git a/src/App/Pages/Accounts/LoginPageViewModel.cs b/src/App/Pages/Accounts/LoginPageViewModel.cs index 734c4464f..a923f7012 100644 --- a/src/App/Pages/Accounts/LoginPageViewModel.cs +++ b/src/App/Pages/Accounts/LoginPageViewModel.cs @@ -31,6 +31,7 @@ namespace Bit.App.Pages PageTitle = AppResources.Bitwarden; TogglePasswordCommand = new Command(TogglePassword); + LogInCommand = new Command(async () => await LogInAsync()); } public bool ShowPassword @@ -55,6 +56,7 @@ namespace Bit.App.Pages set => SetProperty(ref _masterPassword, value); } + public Command LogInCommand { get; } public Command TogglePasswordCommand { get; } public string ShowPasswordIcon => ShowPassword ? "" : ""; public bool RememberEmail { get; set; }