Skip to content
Snippets Groups Projects
Commit 21dfe9dc authored by Tom Needham's avatar Tom Needham
Browse files

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

parent 3ce6eca4
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment