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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -