From 6efd075ed5f314b9b16bf1eb9f5b9038a0e9233e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Wed, 4 Mar 2020 15:54:27 +0100 Subject: [PATCH] SEBWIN-377: Ensured password dialog has focus when loaded. --- SafeExamBrowser.UserInterface.Desktop/PasswordDialog.xaml.cs | 1 + SafeExamBrowser.UserInterface.Mobile/PasswordDialog.xaml.cs | 1 + 2 files changed, 2 insertions(+) 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; }