From 061852ee328199b30b3e82445de88c08b1cdd916 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 29 Jul 2014 12:18:58 +0200 Subject: double clicking on a sprite in the stage selects it in the IDE --- history.txt | 1 + objects.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/history.txt b/history.txt index c64bba8..3d25768 100755 --- a/history.txt +++ b/history.txt @@ -2244,3 +2244,4 @@ ______ * fixed #526, thanks, Bernat, for reporting it! * Objects, GUI: duplicate and clone nested sprites * GUI, Store: export and import nested sprites +* Objects: double clicking on a sprite in the stage selects it in the IDE diff --git a/objects.js b/objects.js index 35a0014..646d498 100644 --- a/objects.js +++ b/objects.js @@ -2642,7 +2642,7 @@ SpriteMorph.prototype.exportSprite = function () { SpriteMorph.prototype.edit = function () { var ide = this.parentThatIsA(IDE_Morph); - if (ide) { + if (ide && !ide.isAppMode) { ide.selectSprite(this); } }; @@ -3484,6 +3484,10 @@ SpriteMorph.prototype.mouseClickLeft = function () { return procs; }; +SpriteMorph.prototype.mouseDoubleClick = function () { + this.edit(); +}; + // SpriteMorph timer SpriteMorph.prototype.getTimer = function () { -- cgit v1.3.1