mirror of
https://github.com/google/blockly.git
synced 2026-01-21 07:47:09 +01:00
This commit is contained in:
@@ -1358,6 +1358,10 @@ Blockly.WorkspaceSvg.prototype.markFocused = function() {
|
||||
this.options.parentWorkspace.markFocused();
|
||||
} else {
|
||||
Blockly.mainWorkspace = this;
|
||||
// We call e.preventDefault in many event handlers which means we
|
||||
// need to explicitly grab focus (e.g from a textarea) because
|
||||
// the browser will not do it for us.
|
||||
this.getParentSvg().focus();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user