kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #469 from nathan/shift-keyboard-shortcuts
Fixed ctrl/cmd+shift+s saving the project in placepull/3/merge
commit
81d3657feb
|
@ -4550,7 +4550,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);
|
||||
|
@ -4575,6 +4575,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();
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue