diff options
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); |