mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
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 (cherry picked from commit 05d3dc533b9748b23ecc0c43aa9a9113c0e4608b)
This commit is contained in:
parent
0f0a540a65
commit
3ff87858de
@ -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…
x
Reference in New Issue
Block a user