Don't fire events when going back to original text in onSetFocus().
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15851
This commit is contained in:
parent
d78d4830e4
commit
3651cad7fd
|
@ -215,7 +215,7 @@ void UNIT_BINDER::onSetFocus( wxFocusEvent& aEvent )
|
|||
|
||||
if( oldStr.length() && oldStr != textEntry->GetValue() )
|
||||
{
|
||||
textEntry->SetValue( oldStr );
|
||||
textEntry->ChangeValue( oldStr );
|
||||
textEntry->SetSelection( m_selStart, m_selEnd );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue