I want add 'Alt-Space' key map to codemirror and then perform a particular function when the keys are pressed. I am not able to add this keymap using .
cm.addKeyMap
Where should I be writing this function so that the key map can be bound to a particular function?