sw/source/core/access/AccessibilityIssue.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit aa553e6906d2f5ac99d30395e0d02ca7d861a0b7
Author:     Balazs Varga <balazs.varga.ext...@allotropia.de>
AuthorDate: Thu Jun 29 12:47:25 2023 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Mon Jul 3 12:40:12 2023 +0200

    tdf#156096 - A11Y - Fix moving the cursor from selected frame object
    
    after we 'GOTO' an a11y frame issue.
    
    Change-Id: Ia828b2ac72edfc2045090d22ccdf3f95d1877170
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153742
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
    (cherry picked from commit a6fc2f6c9a3dcfab2fce365c3e424c1b68f6fadd)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153847

diff --git a/sw/source/core/access/AccessibilityIssue.cxx 
b/sw/source/core/access/AccessibilityIssue.cxx
index feac634f32a6..ebda9a25083b 100644
--- a/sw/source/core/access/AccessibilityIssue.cxx
+++ b/sw/source/core/access/AccessibilityIssue.cxx
@@ -62,7 +62,12 @@ void AccessibilityIssue::gotoIssue() const
         case IssueObject::OLE:
         {
             SwWrtShell* pWrtShell = m_pDoc->GetDocShell()->GetWrtShell();
-            pWrtShell->GotoFly(m_sObjectID, FLYCNTTYPE_ALL, true);
+            bool bSelected = pWrtShell->GotoFly(m_sObjectID, FLYCNTTYPE_ALL, 
true);
+            if (bSelected && pWrtShell->IsFrameSelected())
+            {
+                pWrtShell->HideCursor();
+                pWrtShell->EnterSelFrameMode();
+            }
             if (comphelper::LibreOfficeKit::isActive())
                 pWrtShell->ShowCursor();
         }

Reply via email to