From f471a23b2b45784087bf06b2a42690404f5917fc Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Thu, 8 Feb 2018 18:08:46 -0800 Subject: [PATCH] Add comment --- core/blockly.js | 3 +++ core/workspace_svg.js | 1 + 2 files changed, 4 insertions(+) diff --git a/core/blockly.js b/core/blockly.js index b900cd41a..427d45199 100644 --- a/core/blockly.js +++ b/core/blockly.js @@ -202,6 +202,9 @@ Blockly.onKeyDown_ = function(e) { } if (Blockly.selected && Blockly.selected.isDeletable() && Blockly.selected.isMovable()) { + // Don't allow copying immovable or undeletable blocks. The next step + // would be to paste, which would create additional undeletable/immovable + // blocks on the workspace. if (e.keyCode == 67) { // 'c' for copy. Blockly.hideChaff(); diff --git a/core/workspace_svg.js b/core/workspace_svg.js index 5766c3de8..37ab8b910 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -274,6 +274,7 @@ Blockly.WorkspaceSvg.prototype.toolboxCategoryCallbacks_ = {}; * @package */ Blockly.WorkspaceSvg.prototype.targetWorkspace = null; + /** * Inverted screen CTM, for use in mouseToSvg. * @type {SVGMatrix}