summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-06-03 21:30:52 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-06-04 00:43:18 +0200
commit8501cb20627e5bc36d760b53b0990f4105c4ff65 (patch)
tree2e512d835a8168b18d21f6b178a015c6f11921a9 /svtools
parent2c0157fbe9b9338f98e66d300664fe3c710eb415 (diff)
tdf#160844 we don't want scrollbars to be a target for Ctrl+F6, etc
Change-Id: Ie24c10fa16889a70717cbee15aef38a20308934d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168390 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/scrolladaptor.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svtools/source/control/scrolladaptor.cxx b/svtools/source/control/scrolladaptor.cxx
index 98c4fe7d672c..290468254149 100644
--- a/svtools/source/control/scrolladaptor.cxx
+++ b/svtools/source/control/scrolladaptor.cxx
@@ -24,6 +24,8 @@ ScrollAdaptor::ScrollAdaptor(vcl::Window* pWin, bool bHoriz)
, m_xScrollBar(m_xBuilder->weld_scrollbar(bHoriz ? u"horizontal"_ustr : u"vertical"_ustr))
, m_bHori(bHoriz)
{
+ // tdf#160844 we don't want scrollbars to be a default target for Ctrl+F6, etc
+ SetStyle(GetStyle() & ~WB_TABSTOP);
m_xScrollBar->show();
SetSizePixel(GetOptimalSize());
}