Fixed ctrl/cmd+shift+s saving the project in place

pull/3/merge
Nathan Dinsmore 2014-06-02 15:55:28 -04:00
rodzic 6a4b4afbe9
commit ee695213cf
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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();
}