javascript - How to map multiple commands to a key in CodeMirror? -


currently have code uses codemirror set keystrokes/keymaps in text area. when presses tab, keystroke result in 2 space tab.

stuff.area = codemirror.fromtextarea(elem, {   mode: "some_language"   indentunit: 4   tabsize: 4   extrakeys:     "tab": ((cm) => cm.replaceselection("  ", "end")), }) 

however, make can use codemirror autocomplete feature work when hit tab well. there way set multiple keymaps specific key? either using existing codemirror functionality or editing codemirror source.


Comments

Popular posts from this blog

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -