mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Override Ctrl-S shortcut to save text editor contents
This commit is contained in:
parent
1b612e178b
commit
88818dcfba
@ -46,6 +46,9 @@ function($,
|
||||
that.save_enabled = false;
|
||||
}
|
||||
);
|
||||
cm.setOption("extraKeys", {
|
||||
"Ctrl-S": $.proxy(this.save, this),
|
||||
});
|
||||
};
|
||||
|
||||
Editor.prototype.save = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user