From 6c33373d5b3f0f80b4fe1b41bcf9af64179d414d Mon Sep 17 00:00:00 2001 From: Maribeth Bottorff Date: Mon, 22 Nov 2021 15:03:41 -0800 Subject: [PATCH] chore: make Blockly.common.setSelected package and update docs (#5728) --- core/common.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/common.js b/core/common.js index 3cfd012db..429ee11f4 100644 --- a/core/common.js +++ b/core/common.js @@ -76,9 +76,12 @@ const getSelected = function() { exports.getSelected = getSelected; /** - * Sets the currently selected block. + * Sets the currently selected block. This function does not visually mark the + * block as selected or fire the required events. If you wish to + * programmatically select a block, use `BlockSvg#select`. * @param {?ICopyable} newSelection The newly selected block. * @alias Blockly.common.setSelected + * @package */ const setSelected = function(newSelection) { selected = newSelection;