From 30b36f290aa0b59fd7d2bd41c8bdfca304d859af Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 21 Apr 2021 17:09:59 +0100 Subject: Related: tdf#140659 on control get/lose focus call update custom a11y MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iab7df2c657da3386dc38db8a9d6427c60d8c1cc5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114449 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- starmath/source/ElementsDockingWindow.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index aef1d2598d60..29d4aef5a646 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -651,10 +651,14 @@ void SmElementsControl::GetFocus() { CustomWidgetController::GetFocus(); Invalidate(); + if (m_xAccessible.is() && m_nCurrentElement != SAL_MAX_UINT16) + m_xAccessible->AcquireFocus(); } void SmElementsControl::LoseFocus() { + if (m_xAccessible.is() && m_nCurrentElement != SAL_MAX_UINT16) + m_xAccessible->ReleaseFocus(m_nCurrentElement); CustomWidgetController::LoseFocus(); Invalidate(); } -- cgit