Remove SetFocus hack after changing to wxSearchBox
This commit is contained in:
parent
cc11c269e3
commit
57de6ec0af
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue