Fixed keyboard shortcut for saving files. Thanks adlr in #ace!

This commit is contained in:
Tom Needham 2012-05-13 20:19:20 +00:00
parent 3ce6eca40a
commit 21dfe9dc5e
1 changed files with 4 additions and 0 deletions

View File

@ -221,6 +221,10 @@ function showFileEditor(dir,filename){
document.title = $('#editor').attr('data-filename')+' * - ownCloud';
}
});
// Add the ctrl+s event
window.aceEditor.commands.addCommand({ name: "save", bindKey: { win: "Ctrl-S", mac: "Command-S", sender: "editor" }, exec: function(){
doFileSave();
} });
});
} else {
// Failed to get the file.