Don't try to write to non-editable combobox (KICAD-6JS).

This commit is contained in:
Jeff Young 2025-07-11 21:45:34 +01:00
parent bb45c6c5b5
commit 68109fc0a9

View File

@ -508,7 +508,9 @@ void GRID_TRICKS::onCharHook( wxKeyEvent& ev )
stripped.Replace( COL_SEP, " " );
// Write to the CellEditControl if we can
if( wxTextEntry* te = dynamic_cast<wxTextEntry*>( ev.GetEventObject() ) )
wxTextEntry* te = dynamic_cast<wxTextEntry*>( ev.GetEventObject() );
if( te && te->IsEditable() )
te->WriteText( stripped );
else
paste_text( stripped );