Commit e21ebb72 authored by Wayne Stambaugh's avatar Wayne Stambaugh

Factor Eeschema place item hot keys into select tool event handler.

parent 8e584fc2
This diff is collapsed.
......@@ -666,6 +666,20 @@ void SCH_EDIT_FRAME::OnSelectTool( wxCommandEvent& aEvent )
default:
m_itemToRepeat = NULL;
}
// Simulate left click event if we got here from a hot key.
if( aEvent.GetClientData() != NULL )
{
EDA_HOTKEY_CLIENT_DATA* data = (EDA_HOTKEY_CLIENT_DATA*) aEvent.GetClientData();
wxPoint pos = data->GetPosition();
aEvent.SetClientData( NULL );
delete data;
INSTALL_UNBUFFERED_DC( dc, DrawPanel );
OnLeftClick( &dc, pos );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment