diff options
| author | Nathan Dinsmore <nfdins@gmail.com> | 2014-06-02 15:55:28 -0400 |
|---|---|---|
| committer | Nathan Dinsmore <nfdins@gmail.com> | 2014-06-02 15:56:16 -0400 |
| commit | ee695213cfe947f0dc69de9c640879da96582ddd (patch) | |
| tree | fca7a11cc654445b6ca1f98e172f1665892e5db7 | |
| parent | 6a4b4afbe98fa99623a81a89e2f6505ff5704d38 (diff) | |
| download | snap-yow-ee695213cfe947f0dc69de9c640879da96582ddd.tar.gz snap-yow-ee695213cfe947f0dc69de9c640879da96582ddd.zip | |
Fixed ctrl/cmd+shift+s saving the project in place
| -rw-r--r-- | objects.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4395,7 +4395,7 @@ StageMorph.prototype.processKeyEvent = function (event, action) { default: keyName = String.fromCharCode(event.keyCode || event.charCode); if (event.ctrlKey || event.metaKey) { - keyName = 'ctrl ' + keyName; + keyName = 'ctrl ' + (event.shiftKey ? 'shift ' : '') + keyName; } } action.call(this, keyName); @@ -4420,6 +4420,9 @@ StageMorph.prototype.fireKeyEvent = function (key) { if (evt === 'ctrl s') { return this.parentThatIsA(IDE_Morph).save(); } + if (evt === 'ctrl shift s') { + return this.parentThatIsA(IDE_Morph).saveProjectsBrowser(); + } if (evt === 'esc') { return this.fireStopAllEvent(); } |
