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:
Jeff Young 2023-10-27 14:33:27 +01:00
parent d78d4830e4
commit 3651cad7fd
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}