summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-04-21 17:09:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-04-21 20:45:01 +0200
commit30b36f290aa0b59fd7d2bd41c8bdfca304d859af (patch)
treeead5e2fa95a39d54daa8691786f3cf6710593bb7
parent12ea51ba8bfbc1d22feb2e4d498360eec015859e (diff)
Related: tdf#140659 on control get/lose focus call update custom a11y
Change-Id: Iab7df2c657da3386dc38db8a9d6427c60d8c1cc5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114449 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-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 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();
}