diff --git a/SafeExamBrowser.UserInterface.Desktop/PasswordDialog.xaml.cs b/SafeExamBrowser.UserInterface.Desktop/PasswordDialog.xaml.cs index f1482ff3..07b58391 100644 --- a/SafeExamBrowser.UserInterface.Desktop/PasswordDialog.xaml.cs +++ b/SafeExamBrowser.UserInterface.Desktop/PasswordDialog.xaml.cs @@ -74,6 +74,7 @@ namespace SafeExamBrowser.UserInterface.Desktop ConfirmButton.Click += ConfirmButton_Click; Closing += (o, args) => closing?.Invoke(); + Loaded += (o, args) => Activate(); Password.KeyUp += Password_KeyUp; } diff --git a/SafeExamBrowser.UserInterface.Mobile/PasswordDialog.xaml.cs b/SafeExamBrowser.UserInterface.Mobile/PasswordDialog.xaml.cs index 0f20ad23..b8946b4c 100644 --- a/SafeExamBrowser.UserInterface.Mobile/PasswordDialog.xaml.cs +++ b/SafeExamBrowser.UserInterface.Mobile/PasswordDialog.xaml.cs @@ -84,6 +84,7 @@ namespace SafeExamBrowser.UserInterface.Mobile ConfirmButton.Click += ConfirmButton_Click; Closing += (o, args) => closing?.Invoke(); + Loaded += (o, args) => Activate(); Password.KeyUp += Password_KeyUp; SystemParameters.StaticPropertyChanged += SystemParameters_StaticPropertyChanged; }