summaryrefslogtreecommitdiff
path: root/vcl/jsdialog/executor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/jsdialog/executor.cxx')
-rw-r--r--vcl/jsdialog/executor.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx
index b0c350b76522..d23c1299ade2 100644
--- a/vcl/jsdialog/executor.cxx
+++ b/vcl/jsdialog/executor.cxx
@@ -74,6 +74,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);