mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Fix setting focus for workspace (#3425)
* Fix setting focus for workspace
This commit is contained in:
@@ -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});
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user