There is a conflict on Ctrl-Space shortcut with Firefox older versions(I have 28).
Does anyone have a workaround for it ?
I have tried below two, without any success.
a.
this.editor = CodeMirror.fromTextArea(el, this.options);
this.editor.on('onkeypress', function(cm, event) {
if (event.keyCode == 32 && event.ctrlKey) {
self.server.complete(cm, self.server);
event.stopImmediatePropagation();
event.stopPropagation();
}
});
b. http://jsfiddle.net/g3toraf7/22/
document.addEventListener("keydown", function(e) {
if (e.keyCode == 32 && (e.ctrlKey)) {
alert("test");
e.stopImmediatePropagation();
e.stopPropagation();
}
}, false);
Here is the Firefox bug
https://bugzilla.mozilla.org/show_bug.cgi?id=435164
After going through this pain, figured latest Firefox 38 removed the shortcut.
Regards
Kalyan