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

remotes/origin/stable4
Tom Needham 13 years ago
parent 3ce6eca40a
commit 21dfe9dc5e
  1. 4
      apps/files_texteditor/js/editor.js

@ -221,6 +221,10 @@ function showFileEditor(dir,filename){
document.title = $('#editor').attr('data-filename')+' * - ownCloud'; 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 { } else {
// Failed to get the file. // Failed to get the file.

Loading…
Cancel
Save