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}