Fix mistake in 7edda82b
where any key could delete the material
This commit is contained in:
parent
7edda82b2a
commit
dc6fb73b40
|
@ -134,6 +134,6 @@ void DIALOG_DIELECTRIC_MATERIAL::onListKeyDown( wxListEvent& event )
|
||||||
{
|
{
|
||||||
int idx = event.GetIndex();
|
int idx = event.GetIndex();
|
||||||
|
|
||||||
if( idx > 0 )
|
if( ( idx > 0 ) && ( event.GetKeyCode() == WXK_DELETE ) )
|
||||||
m_lcMaterials->DeleteItem( idx );
|
m_lcMaterials->DeleteItem( idx );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue