diff options
author | Vert D <devoptmsoi@gmx.com> | 2020-12-26 20:41:53 -0500 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-26 08:46:28 +0100 |
commit | 18aa2169c9adf41fa5c9a02ad81d4f68a34509e3 (patch) | |
tree | 6ca7f5768989548a014a2a57376bfcb92e6c7c7a /sfx2/source/doc | |
parent | e51824788d59b060b93d6632c1498fa71fbd9e69 (diff) |
Added delete keyinput to listview, fixed reload() issues: solves tdf#138884
*Added delete keyinput to listview.
*Views Buttons set focus to the appropiate widget.
*Fixed listview reload() issues.
Change-Id: I21379fd98b491b0ed56a3997155c7bb49a5c2d3e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108365
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index afeb5a0b18d2..707fcd07b936 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -822,12 +822,22 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg, LoseFocusHdl, weld::Widget&, void) IMPL_LINK_NOARG ( SfxTemplateManagerDlg, ListViewHdl, weld::Button&, void ) { setTemplateViewMode(TemplateViewMode::eListView); + + if (mxSearchFilter->get_text().isEmpty()) + mxLocalView->ListView::grab_focus(); + else + mxSearchView->ListView::grab_focus(); } IMPL_LINK_NOARG ( SfxTemplateManagerDlg, ThumbnailViewHdl, weld::Button&, void ) { setTemplateViewMode(TemplateViewMode::eThumbnailView); bMakeSelItemVisible = true; + + if (mxSearchFilter->get_text().isEmpty()) + mxLocalView->ThumbnailView::GrabFocus(); + else + mxSearchView->ThumbnailView::GrabFocus(); } IMPL_LINK_NOARG(SfxTemplateManagerDlg, FocusRectLocalHdl, weld::Widget&, tools::Rectangle) |