mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
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:
parent
fabcab1a86
commit
e0e1971bd6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user