svtools/source/control/scrolladaptor.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 8501cb20627e5bc36d760b53b0990f4105c4ff65 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Mon Jun 3 21:30:52 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Tue Jun 4 00:43:18 2024 +0200 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.mcnam...@collabora.com> 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()); }