diff --git a/eeschema/onrightclick.cpp b/eeschema/onrightclick.cpp index 3c637fd98c..5a8bff2905 100644 --- a/eeschema/onrightclick.cpp +++ b/eeschema/onrightclick.cpp @@ -861,10 +861,10 @@ void AddMenusForBlock( wxMenu* PopMenu, SCH_EDIT_FRAME* frame ) { msg = AddHotkeyName( _( "Cut Block" ), g_Schematic_Hokeys_Descr, HK_CUT_BLOCK ); - AddMenuItem( PopMenu, wxID_CUT, msg, KiBitmap( cut_xpm ) ); + AddMenuItem( PopMenu, ID_POPUP_CUT_BLOCK, msg, KiBitmap( cut_xpm ) ); msg = AddHotkeyName( _( "Copy Block" ), g_Schematic_Hokeys_Descr, HK_COPY_BLOCK ); - AddMenuItem( PopMenu, wxID_COPY, msg, KiBitmap( copy_xpm ) ); + AddMenuItem( PopMenu, ID_POPUP_COPY_BLOCK, msg, KiBitmap( copy_xpm ) ); AddMenuItem( PopMenu, ID_POPUP_DUPLICATE_BLOCK, _( "Duplicate Block" ), KiBitmap( duplicate_xpm ) ); msg = AddHotkeyName( _( "Drag Block" ), g_Schematic_Hokeys_Descr, diff --git a/eeschema/schedit.cpp b/eeschema/schedit.cpp index b9dad15877..23fc593435 100644 --- a/eeschema/schedit.cpp +++ b/eeschema/schedit.cpp @@ -124,6 +124,7 @@ void SCH_EDIT_FRAME::Process_Special_Functions( wxCommandEvent& event ) break; case wxID_CUT: // save and delete block + case ID_POPUP_CUT_BLOCK: if( screen->m_BlockLocate.GetCommand() != BLOCK_MOVE ) break; @@ -135,6 +136,7 @@ void SCH_EDIT_FRAME::Process_Special_Functions( wxCommandEvent& event ) break; case wxID_COPY: // really this is a Save block for paste + case ID_POPUP_COPY_BLOCK: screen->m_BlockLocate.SetCommand( BLOCK_COPY ); screen->m_BlockLocate.SetMessageBlock( this ); HandleBlockEnd( &dc ); diff --git a/include/id.h b/include/id.h index 5b03a9ae6b..e95ff3f085 100644 --- a/include/id.h +++ b/include/id.h @@ -161,6 +161,8 @@ enum main_id ID_POPUP_MOVE_BLOCK, ID_POPUP_MOVE_BLOCK_EXACT, ID_POPUP_DRAG_BLOCK, + ID_POPUP_COPY_BLOCK, + ID_POPUP_CUT_BLOCK, ID_POPUP_DUPLICATE_BLOCK, ID_POPUP_ROTATE_BLOCK, ID_POPUP_DELETE_BLOCK,