Space interrupts autocompletion


#1

Hey,

I want to do a autocompletion for sentences. If I press space during the autocompletion window the window closes. Is there a possibility to suppress the interruption?


#2

Yes, the closeCharacters option (which can be set by passing an options object to showHint or setting the hintOptions editor option) determines which characters close the dialog. It defaults to /[\s()\[\]{};:>,]/, you could try setting it to that regexp without the \s.