Add comment

This commit is contained in:
Rachel Fenichel
2018-02-08 18:08:46 -08:00
parent 57852f0249
commit f471a23b2b
2 changed files with 4 additions and 0 deletions

View File

@@ -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();