diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-04 14:22:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-04 16:50:39 +0200 |
commit | ee04805e513b0f804408697fc4b93e3c025d2329 (patch) | |
tree | 94cff76f077644fb1d280df119c6f8f385f6c460 /include/svtools/editbrowsebox.hxx | |
parent | fc0d2136aee6c1749d780de09df025251703b59e (diff) |
Resolves: tdf#143023 explicitly connect to ControlBase focus-[in/out]
instead of listening to the generic vcl::Window/Control focus events.
The thing which really gets/loses focus is now a Widget hosted inside
the ControlBase.
Change-Id: I012d0bea687aa6d5965a4e2f6ce3899bfc629f1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120003
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svtools/editbrowsebox.hxx')
-rw-r--r-- | include/svtools/editbrowsebox.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx index fd111dbef4a9..159e2cedb367 100644 --- a/include/svtools/editbrowsebox.hxx +++ b/include/svtools/editbrowsebox.hxx @@ -178,12 +178,19 @@ namespace svt m_aFocusInHdl = rHdl; } + // chain after the FocusOutHdl + void SetFocusOutHdl(const Link<LinkParamNone*,void>& rHdl) + { + m_aFocusOutHdl = rHdl; + } + protected: DECL_LINK(KeyInputHdl, const KeyEvent&, bool); DECL_LINK(FocusInHdl, weld::Widget&, void); DECL_LINK(FocusOutHdl, weld::Widget&, void); private: Link<LinkParamNone*,void> m_aFocusInHdl; + Link<LinkParamNone*,void> m_aFocusOutHdl; }; class SVT_DLLPUBLIC EditControlBase : public ControlBase |