From 57de6ec0afd0eb07613cae38b6461bb0a281d884 Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Mon, 20 Feb 2017 14:41:21 -0500 Subject: [PATCH] Remove SetFocus hack after changing to wxSearchBox --- eeschema/dialogs/dialog_choose_component.cpp | 10 ---------- 1 file changed, 10 deletions(-) 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 }