diff --git a/eeschema/hotkeys.cpp b/eeschema/hotkeys.cpp index c25f68f6e4..bd0d1b94b9 100644 --- a/eeschema/hotkeys.cpp +++ b/eeschema/hotkeys.cpp @@ -575,7 +575,7 @@ bool SCH_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition, if( aItem == NULL ) { - aItem = LocateAndShowItem( aPosition, SCH_COLLECTOR::MovableItems ); + aItem = LocateAndShowItem( aPosition, SCH_COLLECTOR::CopyableItems ); if( aItem == NULL ) break; diff --git a/eeschema/sch_collectors.cpp b/eeschema/sch_collectors.cpp index a467d24b93..671c611a27 100644 --- a/eeschema/sch_collectors.cpp +++ b/eeschema/sch_collectors.cpp @@ -199,6 +199,16 @@ const KICAD_T SCH_COLLECTOR::OrientableItems[] = { }; +const KICAD_T SCH_COLLECTOR::CopyableItems[] = { + SCH_TEXT_T, + SCH_LABEL_T, + SCH_GLOBAL_LABEL_T, + SCH_HIERARCHICAL_LABEL_T, + SCH_COMPONENT_T, + EOT +}; + + SEARCH_RESULT SCH_COLLECTOR::Inspect( EDA_ITEM* aItem, void* aTestData ) { if( aItem->Type() != LIB_PIN_T && !aItem->HitTest( m_RefPos ) ) diff --git a/eeschema/sch_collectors.h b/eeschema/sch_collectors.h index 3485413cf0..93f2efbe51 100644 --- a/eeschema/sch_collectors.h +++ b/eeschema/sch_collectors.h @@ -112,6 +112,11 @@ public: */ static const KICAD_T OrientableItems[]; + /** + * A scan list for schematic items that can be copied/duplicated. + */ + static const KICAD_T CopyableItems[]; + /** * Constructor SCH_COLLECTOR */