mirror of
https://github.com/chinchang/web-maker.git
synced 2025-05-14 06:15:20 +02:00
stop autocompletion from showing on paste/cut operations. fixes #140
This commit is contained in:
parent
3d75d4069a
commit
ba98ddfc3b
@ -975,7 +975,7 @@ runBtn, searchInput, consoleEl, consoleLogEl, logCountEl, fontStyleTag, fontStyl
|
||||
});
|
||||
} else {
|
||||
cm.on('inputRead', function onChange(editor, input) {
|
||||
if (input.text[0] === ';' || input.text[0] === ' ') { return; }
|
||||
if (input.origin !== '+input' || input.text[0] === ';' || input.text[0] === ' ') { return; }
|
||||
CodeMirror.commands.autocomplete(cm, null, { completeSingle: false })
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user