From ccb956b7d39bb8d3ab269fd2a2c9d1b96ba48f85 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 14 May 2014 09:56:35 +0200 Subject: [PATCH] Holding shift always activates extend current selection mode (in GAL canvas). --- pcbnew/tools/selection_tool.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/selection_tool.cpp b/pcbnew/tools/selection_tool.cpp index b0a333285c..1917076f59 100644 --- a/pcbnew/tools/selection_tool.cpp +++ b/pcbnew/tools/selection_tool.cpp @@ -147,8 +147,13 @@ int SELECTION_TOOL::Main( TOOL_EVENT& aEvent ) // drag with LMB? Select multiple objects (or at least draw a selection box) or drag them else if( evt->IsDrag( BUT_LEFT ) ) { - if( m_selection.Empty() || m_additive ) + if( m_additive ) { + selectMultiple(); + } + else if( m_selection.Empty() ) + { + // There is nothing selected, so try to select something if( !selectSingle( getView()->ToWorld( getViewControls()->GetMousePosition() ), false ) ) { // If nothings has been selected or user wants to select more