Fixed keyboard shortcut for saving files. Thanks adlr in #ace!
This commit is contained in:
parent
3ce6eca40a
commit
21dfe9dc5e
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue