summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-04-21 17:09:59 +0100
committerAndras Timar <andras.timar@collabora.com>2021-04-27 21:54:58 +0200
commitba74a2971f366665ea3723ba140819d8f68c0d0a (patch)
treee783c35cfab8717ebe43f2c42863b8a62ee8e8fd /starmath
parent423a628743139becce8ab86ee2c87b5a95f20001 (diff)
Related: tdf#140659 on control get/lose focus call update custom a11y
Change-Id: Iab7df2c657da3386dc38db8a9d6427c60d8c1cc5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114452 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/ElementsDockingWindow.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx
index e8365df87f01..e6835a4b8034 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();
}