diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-12-01 15:52:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-12-02 09:44:59 +0100 |
commit | 0362d16527c2e33b9e0ab2d410b5f0a5b4cee91b (patch) | |
tree | 04452be05151302df5a2bb65c84d979983f259e8 /formula | |
parent | b99771a0bf090fd58b14d03dc998d3a9cf201719 (diff) |
tdf#138427 focus set to wrong input box
Change-Id: I4c1d3aa720f280f0ec1a3764d55f1d95ebd3180d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106999
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/ui/dlg/funcutl.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx index 68d1ec3b4fc4..f64b6aff9bd5 100644 --- a/formula/source/ui/dlg/funcutl.cxx +++ b/formula/source/ui/dlg/funcutl.cxx @@ -350,6 +350,14 @@ bool RefEdit::KeyInput(const KeyEvent& rKEvt) return false; } +void RefEdit::GrabFocus() +{ + bool bHadFocus = xEntry->has_focus(); + xEntry->grab_focus(); + if (!bHadFocus && xEntry->has_focus()) + GetFocus(*xEntry); +} + IMPL_LINK_NOARG(RefEdit, GetFocus, weld::Widget&, void) { maGetFocusHdl.Call(*this); |