diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2022-07-14 16:51:28 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2022-07-26 13:33:38 +0200 |
commit | 19807d4f31a1f58fe434dfe638e1f3c9a0d8e921 (patch) | |
tree | 525b5345f195208382aedb7c86dbec0584d3b9e2 | |
parent | 880ece2bf00587bdaa633eb572c8dfb56a57b701 (diff) |
jsdialog: handle grab_focus action
Change-Id: I20ec0ac75dfb6260cdd603f9dec7cd5001cb5650
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137085
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mert Tumer <mert.tumer@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137456
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r-- | vcl/jsdialog/executor.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx index 0f8a2722bdac..a389e3ab0739 100644 --- a/vcl/jsdialog/executor.cxx +++ b/vcl/jsdialog/executor.cxx @@ -75,6 +75,12 @@ bool ExecuteAction(const std::string& nWindowId, const OString& rWidget, StringM if (pWidget != nullptr) { + if (sAction == "grab_focus") + { + pWidget->grab_focus(); + return true; + } + if (sControlType == "tabcontrol") { auto pNotebook = dynamic_cast<weld::Notebook*>(pWidget); |