Allows you to shift-click a custom block to quickly open the edit window for it. This means you cannot enter the keyboard editor with the mouse when clicking on custom blocks, but I don't think many people use that.
Here's the code, if you want to make a userscript or something:
if (!CustomCommandBlockMorph.prototype.originalMouseClickLeft) {
CustomCommandBlockMorph.prototype.originalMouseClickLeft = CustomCommandBlockMorph.prototype.mouseClickLeft;
}
CustomCommandBlockMorph.prototype.mouseClickLeft = function() {
if (this.world().currentKey === 16) {
this.edit();
} else {
this.originalMouseClickLeft(...arguments);
}
}
if (!CustomReporterBlockMorph.prototype.originalMouseClickLeft) {
CustomReporterBlockMorph.prototype.originalMouseClickLeft = CustomReporterBlockMorph.prototype.mouseClickLeft;
}
CustomReporterBlockMorph.prototype.mouseClickLeft = CustomCommandBlockMorph.prototype.mouseClickLeft;