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

@ -90,9 +90,12 @@ namespace SafeExamBrowser.UserInterface.Desktop.Windows
Activate(); Activate();
if (forward) if (forward)
{
if (ApplicationStackPanel.Children.Count > 0)
{ {
SetFocusWithin(ApplicationStackPanel.Children[0]); SetFocusWithin(ApplicationStackPanel.Children[0]);
} }
}
else else
{ {
QuitButton.Focus(); QuitButton.Focus();

View file

@ -89,9 +89,12 @@ namespace SafeExamBrowser.UserInterface.Mobile.Windows
Activate(); Activate();
if (fromTop) if (fromTop)
{
if (ApplicationStackPanel.Children.Count > 0)
{ {
ApplicationStackPanel.Children[0].Focus(); ApplicationStackPanel.Children[0].Focus();
} }
}
else else
{ {
QuitButton.Focus(); QuitButton.Focus();