Browse Source

Symbol Editor: handle delete hotkey in block edit mode

pull/6/merge
Maciej Suminski 8 years ago
parent
commit
4b0d477c76
  1. 18
      eeschema/hotkeys.cpp

18
eeschema/hotkeys.cpp

@ -793,14 +793,22 @@ bool LIB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition,
break;
case HK_DELETE:
if ( !itemInEdit )
SetDrawItem( LocateItemUsingCursor( aPosition ) );
if( GetDrawItem() )
if( blocInProgress )
{
cmd.SetId( ID_POPUP_LIBEDIT_DELETE_ITEM );
cmd.SetId( ID_POPUP_DELETE_BLOCK );
Process_Special_Functions( cmd );
}
else
{
if( !itemInEdit )
SetDrawItem( LocateItemUsingCursor( aPosition ) );
if( GetDrawItem() )
{
cmd.SetId( ID_POPUP_LIBEDIT_DELETE_ITEM );
Process_Special_Functions( cmd );
}
}
break;
case HK_LIBEDIT_MOVE_GRAPHIC_ITEM:

Loading…
Cancel
Save