diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-23 13:13:28 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-24 10:51:45 +0000 |
commit | 920d4463f6e59b815852c173e2974ffc7b4bb284 (patch) | |
tree | ac56efa2d79ad622f261e8664a57afa7c7ea0e49 /vcl/source/control/combobox.cxx | |
parent | 2b7109a12ab772bf53766d6e06b422c8e687d482 (diff) |
loplugin:singlevalfields in vcl(part1)
Change-Id: I0031199937cc95793951a070c4b3d8910933e69f
Reviewed-on: https://gerrit.libreoffice.org/26595
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/control/combobox.cxx')
-rw-r--r-- | vcl/source/control/combobox.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx index f8f4b7d9104f..64adaccbe9d5 100644 --- a/vcl/source/control/combobox.cxx +++ b/vcl/source/control/combobox.cxx @@ -342,13 +342,7 @@ IMPL_LINK_NOARG_TYPED(ComboBox::Impl, ImplPopupModeEndHdl, FloatingWindow*, void IMPL_LINK_TYPED(ComboBox::Impl, ImplAutocompleteHdl, Edit&, rEdit, void) { Selection aSel = rEdit.GetSelection(); - AutocompleteAction eAction = rEdit.GetAutocompleteAction(); - /* If there is no current selection do not auto complete on - Tab/Shift-Tab since then we would not cycle to the next field. - */ - if ( aSel.Len() || - ((eAction != AutocompleteAction::TabForward) && (eAction != AutocompleteAction::TabBackward)) ) { OUString aFullText = rEdit.GetText(); OUString aStartText = aFullText.copy( 0, (sal_Int32)aSel.Max() ); @@ -358,16 +352,6 @@ IMPL_LINK_TYPED(ComboBox::Impl, ImplAutocompleteHdl, Edit&, rEdit, void) nStart = 0; bool bForward = true; - if ( eAction == AutocompleteAction::TabForward ) - nStart++; - else if ( eAction == AutocompleteAction::TabBackward ) - { - bForward = false; - if (nStart) - nStart = nStart - 1; - else if (m_pImplLB->GetEntryList()->GetEntryCount()) - nStart = m_pImplLB->GetEntryList()->GetEntryCount()-1; - } sal_Int32 nPos = LISTBOX_ENTRY_NOTFOUND; if (!m_isMatchCase) |