diff --git a/eeschema/dialogs/dialog_choose_component.cpp b/eeschema/dialogs/dialog_choose_component.cpp index a4bc40cd7f..a44d66bfb8 100644 --- a/eeschema/dialogs/dialog_choose_component.cpp +++ b/eeschema/dialogs/dialog_choose_component.cpp @@ -96,16 +96,6 @@ void DIALOG_CHOOSE_COMPONENT::OnSearchBoxChange( wxCommandEvent& aEvent ) { m_search_container->UpdateSearchTerm( m_searchBox->GetLineText( 0 ) ); updateSelection(); - - // On Windows, but not on Linux, the focus is given to - // the m_libraryComponentTree, after modificatuons. - // We want the focus for m_searchBox. - // - // We cannot call SetFocus on Linux because it changes the current text selection - // and the text edit cursor position. -#ifdef __WINDOWS__ - m_searchBox->SetFocus(); -#endif }