tdf#102005 Fix F6 regression in start center
Change-Id: I152a79b79e75bf87c437dd4dd2976c73198e6b52
Reviewed-on: https://gerrit.libreoffice.org/68185
Tested-by: Jenkins
Reviewed-by: V Stuart Foote <vstuart.foote@utsa.edu>
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 5bd7ad1..45dd2af 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -410,15 +410,18 @@ bool BackingWindow::PreNotify(NotifyEvent& rNEvt)
}
else // F6
{
if(mpAllRecentThumbnails->IsVisible())
if( mpAllButtonsBox->HasChildPathFocus() )
{
mpAllRecentThumbnails->GrabFocus();
return true;
}
else if(mpLocalView->IsVisible())
{
mpLocalView->GrabFocus();
return true;
if(mpAllRecentThumbnails->IsVisible())
{
mpAllRecentThumbnails->GrabFocus();
return true;
}
else if(mpLocalView->IsVisible())
{
mpLocalView->GrabFocus();
return true;
}
}
}
}