mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Don't try to write to non-editable combobox (KICAD-6JS).
This commit is contained in:
parent
bb45c6c5b5
commit
68109fc0a9
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user