Skip to content

Commit c92703f

Browse files
committed
Merge branch 'dev'
2 parents 1ff3c8b + f83518c commit c92703f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/runtime/node.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ define(function(require, exports, module) {
1818
//'全选:Ctrl+A:SelectAll'
1919
];
2020

21+
var AppendLock = 0;
22+
2123
buttons.forEach(function(button) {
2224
var parts = button.split(':');
2325
var label = parts.shift();
@@ -29,11 +31,14 @@ define(function(require, exports, module) {
2931
key: key,
3032
action: function() {
3133
if (command.indexOf('Append') === 0) {
34+
AppendLock++;
3235
minder.execCommand(command, '分支主题');
3336

3437
// provide in input runtime
3538
function afterAppend () {
36-
runtime.editText();
39+
if (!--AppendLock) {
40+
runtime.editText();
41+
}
3742
minder.off('layoutallfinish', afterAppend);
3843
}
3944
minder.on('layoutallfinish', afterAppend);

0 commit comments

Comments
 (0)