diff --git a/FloatingSpace/ConditionEditor.js b/FloatingSpace/ConditionEditor.js index b1b66d599..d7a16f968 100644 --- a/FloatingSpace/ConditionEditor.js +++ b/FloatingSpace/ConditionEditor.js @@ -72,6 +72,7 @@ function newConditionEditor () { textArea.style.display = 'none' thisObject.payload.node.code = textArea.value } + EDITOR_ON_FOCUS = false } function activate (payload) { @@ -97,6 +98,7 @@ function newConditionEditor () { 'height: ' + thisObject.container.frame.height + 'px' textArea.style.display = 'block' textArea.focus() + EDITOR_ON_FOCUS = true } function getContainer (point) { diff --git a/FloatingSpace/ConfigEditor.js b/FloatingSpace/ConfigEditor.js index 920c90a76..3136045c5 100644 --- a/FloatingSpace/ConfigEditor.js +++ b/FloatingSpace/ConfigEditor.js @@ -79,6 +79,7 @@ function newConfigEditor () { thisObject.payload.uiObject.setErrorMessage(err.message, 10) } } + EDITOR_ON_FOCUS = false } function activate (payload) { @@ -104,6 +105,7 @@ function newConfigEditor () { 'height: ' + thisObject.container.frame.height + 'px' textArea.style.display = 'block' textArea.focus() + EDITOR_ON_FOCUS = true } function getContainer (point) { diff --git a/FloatingSpace/FormulaEditor.js b/FloatingSpace/FormulaEditor.js index e03dbdc1e..0872f1b5f 100644 --- a/FloatingSpace/FormulaEditor.js +++ b/FloatingSpace/FormulaEditor.js @@ -73,6 +73,7 @@ function newFormulaEditor () { textArea.style.display = 'none' thisObject.payload.node.code = textArea.value } + EDITOR_ON_FOCUS = false } function activate (payload) { @@ -98,6 +99,7 @@ function newFormulaEditor () { 'height: ' + thisObject.container.frame.height + 'px' textArea.style.display = 'block' textArea.focus() + EDITOR_ON_FOCUS = true } function getContainer (point) {