← Back to team overview

kicad-developers team mailing list archive

hotkeys

 

Would you like to add more hotkeys like the ones in the diff?

Eric

Index: hotkeys.cpp
===================================================================
--- hotkeys.cpp (revision 127)
+++ hotkeys.cpp (working copy)
@@ -40,6 +40,8 @@
 
if ( hotkey == 0 ) return;
 
+ wxPoint MousePos; 
+
switch (hotkey)
{
case WXK_DELETE:
@@ -55,7 +57,18 @@
if ( g_LastSearchIsMarker )
WinEDA_SchematicFrame::FindMarker(1);
else FindSchematicItem(wxEmptyString, 2);
break;
-
+ case 'a':
+ case 'A':
+ //m_ID_current_state = ID_WIRE_BUTT;
+ SetToolID( ID_COMPONENT_BUTT, wxCURSOR_PENCIL,
_("Add Component"));
+ OnLeftClick(DC, MousePos);
+ break;
+ case 'w':
+ case 'W':
+ //m_ID_current_state = ID_WIRE_BUTT;
+ SetToolID( ID_WIRE_BUTT, wxCURSOR_PENCIL,
_("Add Wire"));
+ OnLeftClick(DC, MousePos);
+ break;
case 'r': // Rotation
case 'R':
if ( DrawStruct == NULL )








Follow ups