save on ctrl+s
This commit is contained in:
@@ -10,7 +10,13 @@
|
||||
self.tmp('saving', false);
|
||||
|
||||
oEditor = new Editor('#edi_write');
|
||||
oEditor.onKeyStroke = save;
|
||||
oEditor.onKeyStroke = (e) => {
|
||||
if(e.which == 83 && e.ctrlKey) {
|
||||
e.preventDefault();
|
||||
save(true);
|
||||
}
|
||||
else save();
|
||||
}
|
||||
oEditor.moveToPage('last');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user