sw/source/core/access/AccessibilityIssue.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
New commits: commit a89d05840e59c41b6122d551e4dfc26fd3ee515f 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 08:25:33 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> diff --git a/sw/source/core/access/AccessibilityIssue.cxx b/sw/source/core/access/AccessibilityIssue.cxx index c7332f919cf5..5776b3eea164 100644 --- a/sw/source/core/access/AccessibilityIssue.cxx +++ b/sw/source/core/access/AccessibilityIssue.cxx @@ -61,7 +61,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(); }