Context menu, delete, duplicate, and pin function #293
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a context menu with 4 functions: duplicate, summary, pin, and delete
Adds a duplicate function with
ctrl + d
as a shortcut as suggested by #201 (comment) and #267 (comment). The offset is 100 pixels right, 50 pixels down. The snapped blocks and parameter values are also duplicatedThe summary shows the tooltip of the block, intended to be replaced by a more detailed overview like #291 (comment)
Adds a pin function with
ctrl + p
as a shortcut. Pinned blocks can't be dragged. Snapped blocks can pin with their parent block. This feature doesn't need to be added because the undo feature can undo the effects of accidental drags or deletes, so this is just for convenience_confirm_delete
is its own functionFunctions that check snapped blocks only check
Container
nodes because only they haveSnapPoint
nodesWhen the drag drop area receives a right click, a new popup menu determines which function is called from the parent block