File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/DiagramEditor/Diagrams Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1325,7 +1325,7 @@ private void AddCreatedShape()
1325
1325
private void SelectElements ( AbsoluteMouseEventArgs e )
1326
1326
{
1327
1327
DiagramElement firstElement = null ;
1328
- bool multiSelection = ( Control . ModifierKeys == Keys . Control ) ;
1328
+ bool multiSelection = ( Control . ModifierKeys == Keys . Control || Control . ModifierKeys == Keys . Shift ) ;
1329
1329
1330
1330
foreach ( DiagramElement element in GetElementsInDisplayOrder ( ) )
1331
1331
{
@@ -1334,8 +1334,12 @@ private void SelectElements(AbsoluteMouseEventArgs e)
1334
1334
if ( e . Handled && firstElement == null )
1335
1335
{
1336
1336
firstElement = element ;
1337
- if ( isSelected )
1338
- multiSelection = true ;
1337
+
1338
+ // allow to deselect elements when in multiselection
1339
+ if ( multiSelection && isSelected )
1340
+ {
1341
+ element . IsSelected = false ;
1342
+ }
1339
1343
}
1340
1344
}
1341
1345
You can’t perform that action at this time.
0 commit comments