From 2b96d7a756fae9bddd2f2cc556fa74fd44531bb7 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Wed, 16 Mar 2016 19:10:36 -0700 Subject: [PATCH] Don't select blocks if readOnly is changed. --- core/block_svg.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/block_svg.js b/core/block_svg.js index 8b6c36ed9..d9d1d4e32 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -481,6 +481,9 @@ Blockly.BlockSvg.prototype.tab = function(start, forward) { * @private */ Blockly.BlockSvg.prototype.onMouseDown_ = function(e) { + if (this.workspace.options.readOnly) { + return; + } if (this.isInFlyout) { e.stopPropagation(); return;