From ed90da923c4e151273ce5267fef4ebd075fd24b8 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 8 Oct 2017 10:05:18 -0400 Subject: [PATCH] Use Ctrl/Cmd+Drag on an output to create a new cable --- src/app/Port.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/Port.cpp b/src/app/Port.cpp index d7a26848..8c0b80c6 100644 --- a/src/app/Port.cpp +++ b/src/app/Port.cpp @@ -1,4 +1,5 @@ #include "app.hpp" +#include "gui.hpp" namespace rack { @@ -34,7 +35,7 @@ void Port::onDragStart() { // Try to grab wire on top of stack WireWidget *wire = gRackWidget->wireContainer->getTopWire(this); - if (wire) { + if (wire && !guiIsModPressed()) { // Disconnect existing wire if (type == INPUT) wire->inputPort = NULL;