diff --git a/src/index.tsx b/src/index.tsx index 2642b9290..a9285d2e9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -672,6 +672,23 @@ class App extends React.Component<{}, AppState> { clearSelection(elements); } // No matter what, we select it + if (e.altKey) { + const element = newElement( + hitElement.type, + hitElement.x, + hitElement.y, + hitElement.strokeColor, + hitElement.backgroundColor, + hitElement.fillStyle, + hitElement.strokeWidth, + hitElement.roughness, + hitElement.opacity, + hitElement.width, + hitElement.height + ); + + elements.push(element); + } hitElement.isSelected = true; } } else {