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
commit ebac296157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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