[Libreoffice-commits] core.git: starmath/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 21 18:45:50 UTC 2021


 starmath/source/ElementsDockingWindow.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 30b36f290aa0b59fd7d2bd41c8bdfca304d859af
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Apr 21 17:09:59 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Apr 21 20:45:01 2021 +0200

    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 at redhat.com>

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();
 }


More information about the Libreoffice-commits mailing list