fix: Harmonize enter key behaviour between formulas and transformations

This commit is contained in:
Camille 2023-02-22 10:34:31 +01:00
parent c582797aa1
commit dba64a20b4

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