summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Dinsmore <nfdins@gmail.com>2014-06-02 15:55:28 -0400
committerNathan Dinsmore <nfdins@gmail.com>2014-06-02 15:56:16 -0400
commitee695213cfe947f0dc69de9c640879da96582ddd (patch)
treefca7a11cc654445b6ca1f98e172f1665892e5db7
parent6a4b4afbe98fa99623a81a89e2f6505ff5704d38 (diff)
downloadsnap-ee695213cfe947f0dc69de9c640879da96582ddd.tar.gz
snap-ee695213cfe947f0dc69de9c640879da96582ddd.zip
Fixed ctrl/cmd+shift+s saving the project in place
-rw-r--r--objects.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/objects.js b/objects.js
index 5f91606..f48b13a 100644
--- a/objects.js
+++ b/objects.js
@@ -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();
}