1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-30 10:10:13 +02:00

dont show hints when space is typed

This commit is contained in:
Kushagra Gour
2017-01-28 01:27:45 +05:30
parent b78c033aba
commit ebcfdbf1a0

View File

@@ -768,7 +768,7 @@ settingsBtn, onboardModal, notificationsBtn, onboardShowInTabOptionBtn, onboardD
}, updateDelay);
});
cm.on('inputRead', function onChange(editor, input) {
if (input.text[0] === ';') { return; }
if (input.text[0] === ';' || input.text[0] === ' ') { return; }
CodeMirror.commands.autocomplete(cm, null, { completeSingle: false })
});
return cm;