From e06807155d18e26553d61bf533da5bbd0e045b58 Mon Sep 17 00:00:00 2001 From: DD Date: Tue, 7 Aug 2018 17:55:45 -0400 Subject: [PATCH] Add todo per code review --- core/blockly.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/blockly.js b/core/blockly.js index b2c31a127..974e39d11 100644 --- a/core/blockly.js +++ b/core/blockly.js @@ -168,10 +168,12 @@ Blockly.svgResize = function(workspace) { }; /** - * Handle a key-down on SVG drawing surface. + * Handle a key-down on SVG drawing surface. Does nothing if the main workspace is not visible. * @param {!Event} e Key down event. * @private */ + // TODO handle cases where there are multiple workspaces and non-main workspaces are able to accept + // input. Blockly.onKeyDown_ = function(e) { if (Blockly.mainWorkspace.options.readOnly || Blockly.utils.isTargetInput(e) || (Blockly.mainWorkspace.rendered && !Blockly.mainWorkspace.isVisible)) {