From bf10b3e8f684f9122718e6cd1d253c96f87fe01c Mon Sep 17 00:00:00 2001
From: Paul Kaplan <pkaplan@media.mit.edu>
Date: Mon, 4 Dec 2017 14:04:26 -0500
Subject: [PATCH] Remove context menu from declaration block

---
 src/containers/custom-procedures.jsx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/containers/custom-procedures.jsx b/src/containers/custom-procedures.jsx
index b7df8793b..5075ef68d 100644
--- a/src/containers/custom-procedures.jsx
+++ b/src/containers/custom-procedures.jsx
@@ -39,7 +39,10 @@ class CustomProcedures extends React.Component {
 
         // Create the procedure declaration block for editing the mutation.
         this.mutationRoot = this.workspace.newBlock('procedures_declaration');
+        // Make the declaration fixed and have no context menu
         this.mutationRoot.setMovable(false);
+        this.mutationRoot.contextMenu = false;
+
         this.workspace.addChangeListener(() => {
             this.mutationRoot.onChangeFn();
             // Keep the block centered on the workspace
-- 
GitLab