int mask = InputEvent.SHIFT_DOWN_MASK + InputEvent.BUTTON1_DOWN_MASK;
if((e.getModifiersEx() & mask) == mask || delegate.eventCanCreateLink()) {
startElement = selectedElement;
startAnchorKey = startElement.getAnchorKeyClosestToPoint(mousePosition);
linkArc = new SLinkArc();
linkArc.setStartTangentOffset(startElement.getDefaultAnchorOffset(startAnchorKey));
linkElbow = new SLinkElbow();
if(view.defaultLinkShape() == GLink.SHAPE_ARC)