mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Merge pull request #438 from incubateur-territoires/enter-key-formulas
fix: Harmonize enter key behaviour between formulas and transformations
This commit is contained in:
commit
ebac296157
@ -144,12 +144,9 @@ AceEditor.prototype.attachSaveCommand = function() {
|
|||||||
if (!this.observable) {
|
if (!this.observable) {
|
||||||
throw new Error("Cannot attach save command to editor with no bound observable");
|
throw new Error("Cannot attach save command to editor with no bound observable");
|
||||||
}
|
}
|
||||||
var key = 'Shift+Enter';
|
|
||||||
this.editor.commands.addCommand({
|
this.editor.commands.addCommand({
|
||||||
name: 'saveFormula',
|
name: 'saveFormula',
|
||||||
bindKey: {
|
bindKey: {
|
||||||
win: key,
|
|
||||||
mac: key,
|
|
||||||
sender: 'editor|cli'
|
sender: 'editor|cli'
|
||||||
},
|
},
|
||||||
// AceEditor wants a command to return true if it got handled
|
// AceEditor wants a command to return true if it got handled
|
||||||
|
Loading…
Reference in New Issue
Block a user