Skip to content
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

Feedback #353

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Feedback connections can now be disconnected in the viewer.
  • Loading branch information
stebanos committed Jun 11, 2013
commit 2d0f7ac0f3a00fc7dce4232ef8b7276193be4a6c
3 changes: 2 additions & 1 deletion src/main/java/nodebox/client/NetworkView.java
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,8 @@ public void mousePressed(MouseEvent e) {
connectionInput = getInputPortAt(pt);
if (connectionInput != null) {
// We're over a port, but is it connected?
Connection c = getActiveNetwork().getConnection(connectionInput.node, connectionInput.port);
Connection.Type type = isShiftPressed ? Connection.Type.FEEDBACK : Connection.Type.STANDARD;
Connection c = getActiveNetwork().getConnection(connectionInput.node, connectionInput.port, type);
// Disconnect it, but start a new connection on the same node immediately.
if (c != null) {
getDocument().disconnect(c);
Expand Down