From 2edb09e583f90046eb83e5201ab85b2eb0f9c839 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 3 May 2019 21:14:03 +0100 Subject: [PATCH] Double click action should enter sheet. --- eeschema/tools/sch_selection_tool.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eeschema/tools/sch_selection_tool.cpp b/eeschema/tools/sch_selection_tool.cpp index 5a635c89b5..78baf6f08d 100644 --- a/eeschema/tools/sch_selection_tool.cpp +++ b/eeschema/tools/sch_selection_tool.cpp @@ -290,7 +290,12 @@ int SCH_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent ) if( m_selection.Empty() ) SelectPoint( evt->Position()); - m_toolMgr->RunAction( SCH_ACTIONS::properties ); + EDA_ITEM* item = m_selection.Front(); + + if( item && item->Type() == SCH_SHEET_T ) + m_toolMgr->RunAction( SCH_ACTIONS::enterSheet ); + else + m_toolMgr->RunAction( SCH_ACTIONS::properties ); } // drag with LMB? Select multiple objects (or at least draw a selection box) or drag them