include/vcl/jsdialog/executor.hxx |    2 ++
 include/vcl/weld.hxx              |    1 +
 vcl/jsdialog/executor.cxx         |    5 +++++
 3 files changed, 8 insertions(+)

New commits:
commit f57d1ec3ef41013ff51b507b746fff9432b86057
Author:     NickWingate <nick.wing...@collabora.com>
AuthorDate: Fri Jul 11 15:01:47 2025 +0100
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Mon Aug 4 10:46:46 2025 +0200

    Add activate action support for edit field
    
    Allows online to send activate command on an
    edit field (`EditWidget` in online).
    
    Signed-off-by: NickWingate <nick.wing...@collabora.com>
    Change-Id: I3e982e824da5e4d6df63e75edf07f1745d401c6d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187729
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/include/vcl/jsdialog/executor.hxx 
b/include/vcl/jsdialog/executor.hxx
index d2af7a124a10..28f87f8d958d 100644
--- a/include/vcl/jsdialog/executor.hxx
+++ b/include/vcl/jsdialog/executor.hxx
@@ -21,6 +21,8 @@ public:
 
     static void trigger_changed(weld::Entry& rEdit) { rEdit.signal_changed(); }
 
+    static void trigger_activated(weld::Entry& rEdit) { 
rEdit.signal_activated(); }
+
     static void trigger_changed(weld::ComboBox& rComboBox) { 
rComboBox.signal_changed(); }
 
     static void trigger_changed(weld::TreeView& rTreeView) { 
rTreeView.signal_changed(); }
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index 333ef8ea5557..fdda5b5168bb 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -1767,6 +1767,7 @@ protected:
     friend class ::LOKTrigger;
 
     void signal_changed() { m_aChangeHdl.Call(*this); }
+    void signal_activated() { m_aActivateHdl.Call(*this); }
     void signal_cursor_position() { m_aCursorPositionHdl.Call(*this); }
 
 public:
diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx
index a9a8b4243ef9..05c84ec45936 100644
--- a/vcl/jsdialog/executor.cxx
+++ b/vcl/jsdialog/executor.cxx
@@ -487,6 +487,11 @@ bool ExecuteAction(const OUString& nWindowId, const 
OUString& rWidget, const Str
                     LOKTrigger::trigger_changed(*pEdit);
                     return true;
                 }
+                if (sAction == "activate")
+                {
+                    LOKTrigger::trigger_activated(*pEdit);
+                    return true;
+                }
             }
 
             auto pTextView = dynamic_cast<JSTextView*>(pWidget);

Reply via email to