diff --git a/core/scrollbar.js b/core/scrollbar.js index c30f45cd0..e379dca4b 100644 --- a/core/scrollbar.js +++ b/core/scrollbar.js @@ -599,6 +599,7 @@ Blockly.Scrollbar.prototype.setVisible = function(visible) { * @private */ Blockly.Scrollbar.prototype.onMouseDownBar_ = function(e) { + this.workspace_.markFocused(); Blockly.Touch.clearTouchIdentifier(); // This is really a click. this.cleanUp_(); if (Blockly.isRightButton(e)) { @@ -638,6 +639,7 @@ Blockly.Scrollbar.prototype.onMouseDownBar_ = function(e) { * @private */ Blockly.Scrollbar.prototype.onMouseDownHandle_ = function(e) { + this.workspace_.markFocused(); this.cleanUp_(); if (Blockly.isRightButton(e)) { // Right-click.