mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Add todo per code review
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user