codemirror autocomplete after any keyup?
问题 I'm working on trying to add a custom autocomplete, that I want to trigger whenever the user is typing (configurable of course). I've found a couple examples of autocomplete for codemirror: http://codemirror.net/demo/complete.html and http://codemirror.net/demo/xmlcomplete.html But both of these trigger on specific keys (Control-Space for one and '<' for the other) and both use the extraKeys functionality to process the events, but I want to trigger from any key. I have tried the following: