diff options
| author | jmoenig <jens@moenig.org> | 2014-07-29 12:18:58 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-07-29 12:18:58 +0200 |
| commit | 061852ee328199b30b3e82445de88c08b1cdd916 (patch) | |
| tree | 53eb432825866630354b9518bafc58fda294446f | |
| parent | bef0e7a790119f3602683a144b9ddf894cb4d013 (diff) | |
| download | snap-061852ee328199b30b3e82445de88c08b1cdd916.tar.gz snap-061852ee328199b30b3e82445de88c08b1cdd916.zip | |
double clicking on a sprite in the stage selects it in the IDE
| -rwxr-xr-x | history.txt | 1 | ||||
| -rw-r--r-- | objects.js | 6 |
2 files changed, 6 insertions, 1 deletions
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 @@ -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 () { |
