sw/source/core/access/AccessibilityIssue.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 45cefedbc633fc315972a1fcfae43f79230703a0 Author: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> AuthorDate: Mon May 15 16:01:50 2023 +0200 Commit: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> CommitDate: Mon May 15 21:21:24 2023 +0200 tdf#142978 Grab focus to document when clicking "Go to" button Change-Id: Id671c0f2e31435a09f6945d5065384cae49c37c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151790 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 3555e0ae2b41..300f42eeaf6a 100644 --- a/sw/source/core/access/AccessibilityIssue.cxx +++ b/sw/source/core/access/AccessibilityIssue.cxx @@ -10,9 +10,11 @@ #include <AccessibilityIssue.hxx> #include <AccessibilityCheckStrings.hrc> +#include <edtwin.hxx> #include <swtypes.hxx> #include <wrtsh.hxx> #include <docsh.hxx> +#include <view.hxx> #include <comphelper/lok.hxx> #include <cui/dlgname.hxx> @@ -85,6 +87,7 @@ void AccessibilityIssue::gotoIssue() const default: break; } + m_pDoc->GetDocShell()->GetView()->GetEditWin().GrabFocus(); } bool AccessibilityIssue::canQuickFixIssue() const