diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2019-10-03 09:14:12 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-10-16 10:23:40 +0200 |
commit | a15459316bcf18000a74c3779a60689c828c5870 (patch) | |
tree | f91d98518bd22970d56070e18d64192ccec974c4 | |
parent | 76bcbdc67f1b22a45c90bfbfdff715465f403a66 (diff) |
tdf#62955 - Allow searching a name with typing the first letter
Grab focus of the TreeView when the macro chooser is created
Change-Id: Idfe3d2435840103eb2fa0ec5d17efce0931cfabd
Reviewed-on: https://gerrit.libreoffice.org/80095
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r-- | basctl/source/basicide/macrodlg.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx index 9d1add2ae515..3459a5432b9f 100644 --- a/basctl/source/basicide/macrodlg.cxx +++ b/basctl/source/basicide/macrodlg.cxx @@ -172,7 +172,6 @@ void MacroChooser::RestoreMacroDescription() short MacroChooser::run() { RestoreMacroDescription(); - m_xRunButton->grab_focus(); // #104198 Check if "wrong" document is active bool bSelectedEntry = m_xBasicBox->get_cursor(m_xBasicBoxIter.get()); @@ -209,6 +208,9 @@ short MacroChooser::run() CheckButtons(); UpdateFields(); + // tdf#62955 - Allow searching a name with typing the first letter + m_xBasicBox->get_widget().grab_focus(); + if ( StarBASIC::IsRunning() ) m_xCloseButton->grab_focus(); |