Fix setting focus for workspace (#3425)

* Fix setting focus for workspace
This commit is contained in:
alschmiedt
2019-11-11 16:44:58 -08:00
committed by GitHub
parent 3076874b2b
commit 40bdfac017
6 changed files with 32 additions and 15 deletions

View File

@@ -334,7 +334,7 @@ Blockly.FieldColour.prototype.showEditor_ = function() {
this, this.dropdownDispose_.bind(this));
// Focus so we can start receiving keyboard events.
this.picker_.focus();
this.picker_.focus({preventScroll:true});
};
/**
@@ -487,7 +487,7 @@ Blockly.FieldColour.prototype.onMouseMove_ = function(e) {
* @private
*/
Blockly.FieldColour.prototype.onMouseEnter_ = function() {
this.picker_.focus();
this.picker_.focus({preventScroll:true});
};
/**