From 0518d9c54658026cc6eea79f5b242dc18613a754 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 23 Feb 2021 17:05:03 -0800 Subject: [PATCH] Add more force-immediate tools --- eeschema/tools/sch_drawing_tools.cpp | 2 +- pagelayout_editor/tools/pl_drawing_tools.cpp | 2 +- pcbnew/tools/drawing_tool.cpp | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/eeschema/tools/sch_drawing_tools.cpp b/eeschema/tools/sch_drawing_tools.cpp index 8a37396046..a6cbe512f7 100644 --- a/eeschema/tools/sch_drawing_tools.cpp +++ b/eeschema/tools/sch_drawing_tools.cpp @@ -924,7 +924,7 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent ) Activate(); // Prime the pump - if( aEvent.HasPosition() ) + if( aEvent.HasPosition() || isText || isGlobalLabel || isHierLabel || isNetLabel ) m_toolMgr->RunAction( ACTIONS::cursorClick ); auto setCursor = diff --git a/pagelayout_editor/tools/pl_drawing_tools.cpp b/pagelayout_editor/tools/pl_drawing_tools.cpp index 8d3d1d680f..39914ec48d 100644 --- a/pagelayout_editor/tools/pl_drawing_tools.cpp +++ b/pagelayout_editor/tools/pl_drawing_tools.cpp @@ -88,7 +88,7 @@ int PL_DRAWING_TOOLS::PlaceItem( const TOOL_EVENT& aEvent ) Activate(); // Prime the pump - if( aEvent.HasPosition() ) + if( aEvent.HasPosition() || isText ) m_toolMgr->RunAction( ACTIONS::cursorClick ); auto setCursor = diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index 91b1abdcc1..9e6b375d5a 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -436,8 +436,7 @@ int DRAWING_TOOL::PlaceText( const TOOL_EVENT& aEvent ) Activate(); // Prime the pump - if( aEvent.HasPosition() ) - m_toolMgr->RunAction( ACTIONS::cursorClick ); + m_toolMgr->RunAction( ACTIONS::cursorClick ); auto setCursor = [&]()