Skip to content
Snippets Groups Projects
Commit 8b690c9a authored by Jeff Young's avatar Jeff Young :flag_ua:
Browse files

Restore fix for #10029.

Fixes #12445

(cherry picked from commit 1be8adeb)
parent 6d25e57c
No related branches found
No related tags found
Loading
......@@ -421,6 +421,10 @@ void CVPCB_MAINFRAME::OnEnterFilteringText( wxCommandEvent& aEvent )
// If the option FOOTPRINTS_LISTBOX::FILTERING_BY_TEXT_PATTERN is set, update the list
// of available footprints which match the filter
// GTK loses the search-control's focus when updating the footprints list box, so we record
// the insertion point here and then restore it (and the focus) at the end.
long pos = m_tcFilterString->GetInsertionPoint();
COMPONENT* symbol = GetSelectedComponent();
wxString libraryName = m_librariesListBox->GetSelectedLibrary();
......@@ -435,6 +439,9 @@ void CVPCB_MAINFRAME::OnEnterFilteringText( wxCommandEvent& aEvent )
RefreshFootprintViewer();
DisplayStatus();
m_tcFilterString->SetFocus();
m_tcFilterString->SetInsertionPoint( pos );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment