← Back to team overview

kicad-developers team mailing list archive

Hotkeys

 

Hi.
	
I made a few changes in hotkeys.cpp, but do not work as expected.
I wants to use 'R' to rotate the pin in library editor. I added to
hotkeys.cpp:

case HK_EDIT_PIN:
if(DrawEntry)
CurrentDrawItem = DrawEntry;
if(CurrentDrawItem)
{
if(CurrentDrawItem->Type() == COMPONENT_PIN_DRAW_TYPE)
if(((LibDrawPin *) CurrentDrawItem)->m_Orjent>3)
((LibDrawPin *) CurrentDrawItem)->m_Orjent=0;
else 
((LibDrawPin *) CurrentDrawItem)->m_Orjent++; 
}
break;
 	
Everything works fine, as long as I did not try to edit the pin. Then
pin orientation is set to the right