1
0
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:
Kushagra Gour 2017-06-10 02:17:03 +05:30
parent 3d75d4069a
commit ba98ddfc3b

View File

@ -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 })
});
}