summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-09 17:18:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-09 17:20:06 +0100
commitb5167e1866efb646270edce8b37894a93bea2cde (patch)
tree42e877817dcc1782e832d3d8091699885b523b5f
parent04a290b107ac0c0c7b1e03da541a4a0c315743e1 (diff)
Related: fdo#83003 warp directly to the templates/recentfiles on changing mode
which has the side-effect that the keyboard and tab key will cycle through all the contents of the start center. Otherwise in the template view on first clicking templates you are "stuck" Change-Id: Iceed2492e8dde28c0ada381ef0f430738441179f
-rw-r--r--sfx2/source/dialog/backingwindow.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 1e87b42a27a3..08ccff1d73ea 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -551,6 +551,7 @@ IMPL_LINK( BackingWindow, ClickHdl, Button*, pButton )
{
mpLocalView->Hide();
mpAllRecentThumbnails->Show();
+ mpAllRecentThumbnails->GrabFocus();
}
else if( pButton == mpTemplateButton )
{
@@ -558,6 +559,7 @@ IMPL_LINK( BackingWindow, ClickHdl, Button*, pButton )
mpCurrentView->filterItems(ViewFilter_Application(FILTER_APP_NONE));
mpLocalView->Show();
mpLocalView->reload();
+ mpLocalView->GrabFocus();
}
return 0;
}
@@ -598,6 +600,7 @@ IMPL_LINK( BackingWindow, MenuSelectHdl, MenuButton*, pButton )
mpAllRecentThumbnails->Hide();
mpLocalView->Show();
mpLocalView->reload();
+ mpLocalView->GrabFocus();
return 0;
}