diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-04-21 17:09:59 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-04-22 10:28:15 +0200 |
commit | 6b4d475b9377dba504a08c4317210bf3f8bc1859 (patch) | |
tree | 67a85c16cabec70aade3ed6444d81a046d85c143 /starmath | |
parent | b45629418d91c7452245ae4c6894fa3c1becf237 (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.cxx | 4 |
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(); } |