Prevent cvpcb from losing text focus on filter
Refresh event changes focus (on GTK). We fix this by storing the existing insertion point in the text box, refocusing and restoring the text position Fixes https://gitlab.com/kicad/code/kicad/issues/10029
This commit is contained in:
parent
1e05732f55
commit
05d3dc533b
|
@ -419,8 +419,11 @@ 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
|
||||
|
||||
long pos = m_tcFilterString->GetInsertionPoint();
|
||||
wxListEvent l_event;
|
||||
OnSelectComponent( l_event );
|
||||
m_tcFilterString->SetFocus();
|
||||
m_tcFilterString->SetInsertionPoint( pos );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue