summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-08-20 17:20:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-08-21 19:44:26 +0200
commit21e04507fac395c3efa290a4a1972cbff316ea3b (patch)
treee39c936be8d81d3883fd2a6f20700cfba2249f85 /sfx2/source
parentec9d6f6f5e2c3b6cd0350867d527e95e939557c9 (diff)
grab focus on mouse button down
Change-Id: Iac2194e806a514f008e87e04bc528e007eab853d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101145 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/control/thumbnailview.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx
index f0eae308158f..902f62857765 100644
--- a/sfx2/source/control/thumbnailview.cxx
+++ b/sfx2/source/control/thumbnailview.cxx
@@ -1830,6 +1830,8 @@ void SfxThumbnailView::MakeItemVisible( sal_uInt16 nItemId )
bool SfxThumbnailView::MouseButtonDown( const MouseEvent& rMEvt )
{
+ GrabFocus();
+
if (!rMEvt.IsLeft())
{
return CustomWidgetController::MouseButtonDown( rMEvt );