summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2015-05-06 15:32:17 +0200
committerGubolin <gubolin@fantasymail.de>2015-05-06 15:32:17 +0200
commitb0d5fca03273d74c009c1415285c0ec375e1f848 (patch)
tree38a6a8ab1714f0f0945cd6b1a093503c8e9ac127 /blocks.js
parent8a83be1c8a37ed3b3672c77028741ec5ec8c7b5a (diff)
parent83628bc0aca42c078a96b0a6fbb2675cf6cae5c3 (diff)
downloadsnap-b0d5fca03273d74c009c1415285c0ec375e1f848.tar.gz
snap-b0d5fca03273d74c009c1415285c0ec375e1f848.zip
merge upstream
Diffstat (limited to 'blocks.js')
-rw-r--r--blocks.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/blocks.js b/blocks.js
index e9daff2..f75146f 100644
--- a/blocks.js
+++ b/blocks.js
@@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/
// Global stuff ////////////////////////////////////////////////////////
-modules.blocks = '2015-March-23';
+modules.blocks = '2015-May-01';
var SyntaxElementMorph;
@@ -7024,6 +7024,15 @@ InputSlotMorph.prototype.fixLayout = function () {
// InputSlotMorph events:
+InputSlotMorph.prototype.mouseDownLeft = function (pos) {
+ if (this.isReadOnly || this.arrow().bounds.containsPoint(pos)) {
+ this.escalateEvent('mouseDownLeft', pos);
+ } else {
+ this.contents().edit();
+ this.contents().selectAll();
+ }
+};
+
InputSlotMorph.prototype.mouseClickLeft = function (pos) {
if (this.arrow().bounds.containsPoint(pos)) {
this.dropDownMenu();