Jonas Sourlier 2022-10-25 13:14:59 +02:00
parent 75907928d7
commit bb0f679c6b
2 changed files with 8 additions and 2 deletions

View file

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

View file

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