File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -470,18 +470,23 @@ def mousePressEvent(self, event):
470470 self ._rubber_band .isActive = True
471471
472472 # stop here so we don't select a node.
473+ # (ctrl modifier can be used for something else in future.)
473474 if self .CTRL_state :
474475 return
475476
476477 # allow new live pipe with the shift modifier on port that allow
477478 # for multi connection.
478- if self .SHIFT_state and pipes :
479- pipes [0 ].reset ()
480- port = pipes [0 ].port_from_pos (map_pos , reverse = True )
481- if not port .locked and port .multi_connection :
482- self ._cusor_text .setPlainText ('' )
483- self ._cusor_text .setVisible (False )
484- self .start_live_connection (port )
479+ if self .SHIFT_state :
480+ if pipes :
481+ pipes [0 ].reset ()
482+ port = pipes [0 ].port_from_pos (map_pos , reverse = True )
483+ if not port .locked and port .multi_connection :
484+ self ._cusor_text .setPlainText ('' )
485+ self ._cusor_text .setVisible (False )
486+ self .start_live_connection (port )
487+
488+ # return here as the default behaviour unselects nodes with
489+ # the shift modifier.
485490 return
486491
487492 if not self ._LIVE_PIPE .isVisible ():
You can’t perform that action at this time.
0 commit comments