-
Notifications
You must be signed in to change notification settings - Fork 668
Duplicate connectors on ctrl + click on input ports #7850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Functionality wise this is what I was looking, so LGTM from my side. @benglin Can you please do the code review? Thanks, |
|
|
||
| case MakeConnectionCommand.Mode.EndAndStartCtrlConnection: | ||
| EndAndStartCtrlConnection(nodeId, command.PortIndex, command.Type); | ||
| break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @yeexinc, after further considerations I think better names for the modes would be BeginDuplicateConnection and BeginCreateConnections. Please also rename the methods to reflect this.
| activeStartPorts = new PortModel[] { portModel.Connectors[0].Start }; | ||
| firstStartPort = portModel.Connectors[0].Start; | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the undo work for each of the connectors created?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benglin - Yes, each undo action corresponds to one connector created.
|
@QilongTang - I think we just need to add this to our backlog. Let us just try to merge this in if you think it looks good to go. Adding a task for this. |
|
closing and picking this work up in #9567 |
Purpose
Duplicate connectors when the user does a ctrl + click on input ports.

Declarations
Check these if you believe they are true
*.resxfilesReviewers
@benglin
@riteshchandawar