Prevent backspace from re-filtering nets

Makes adjusting autofilled nets more pleasant.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20786
This commit is contained in:
Seth Hillbrand 2025-04-29 16:05:36 -07:00
parent fabcab1a86
commit e0e1971bd6

View File

@ -966,10 +966,8 @@ void DIALOG_LABEL_PROPERTIES::OnLabelFilter( wxCommandEvent& event )
wxString currentLabelText = m_valueCombo->GetValue();
// Check if the text has changed compared to the previous value
if( currentLabelText != m_previousLabelText )
if( currentLabelText.length() > m_previousLabelText.length() )
{
m_previousLabelText = currentLabelText;
long insertionPoint = m_valueCombo->GetInsertionPoint();
wxArrayString filteredLabels;
@ -1018,6 +1016,7 @@ void DIALOG_LABEL_PROPERTIES::OnLabelFilter( wxCommandEvent& event )
}
}
m_previousLabelText = currentLabelText;
isFiltering = false;
}