Merge pull request #438 from incubateur-territoires/enter-key-formulas

fix: Harmonize enter key behaviour between formulas and transformations
This commit is contained in:
jarek
2023-02-22 16:29:12 +01:00
committed by GitHub

View File

@@ -144,12 +144,9 @@ AceEditor.prototype.attachSaveCommand = function() {
if (!this.observable) {
throw new Error("Cannot attach save command to editor with no bound observable");
}
var key = 'Shift+Enter';
this.editor.commands.addCommand({
name: 'saveFormula',
bindKey: {
win: key,
mac: key,
sender: 'editor|cli'
},
// AceEditor wants a command to return true if it got handled