Merge pull request #494 from yolpsoftware/bugfix/490

fix https://github.com/SafeExamBrowser/seb-win-refactoring/issues/490
This commit is contained in:
Damian Büchel 2022-10-27 11:20:37 +02:00 committed by GitHub
commit cd053e760e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ namespace SafeExamBrowser.UserInterface.Desktop.Windows
{
Activate();
if (forward)
if (forward && ApplicationStackPanel.Children.Count > 0)
{
SetFocusWithin(ApplicationStackPanel.Children[0]);
}

View file

@ -88,7 +88,7 @@ namespace SafeExamBrowser.UserInterface.Mobile.Windows
{
Activate();
if (fromTop)
if (fromTop && ApplicationStackPanel.Children.Count > 0)
{
ApplicationStackPanel.Children[0].Focus();
}