# Autocomplete Ctrl-Space shortcut conflict with Old Firefox

**URL:** <https://discuss.codemirror.net/t/autocomplete-ctrl-space-shortcut-conflict-with-old-firefox/288>\
**Category:** Uncategorized\
**Created:** [June 30, 2015, 6:51pm UTC](https://discuss.codemirror.net/t/autocomplete-ctrl-space-shortcut-conflict-with-old-firefox/288 "2015-06-30T18:51:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalyanb](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/k/b19c9b/32.png) [@kalyanb](https://discuss.codemirror.net/u/kalyanb)\
**Post date:** [June 30, 2015, 6:51pm UTC](https://discuss.codemirror.net/t/autocomplete-ctrl-space-shortcut-conflict-with-old-firefox/288/1 "2015-06-30T18:51:30Z")

</div>

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](https://bugzilla.mozilla.org/show_bug.cgi?id=435164)  
After going through this pain, figured latest Firefox 38 removed the shortcut.

Regards  
Kalyan

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)\
**Post date:** [July 2, 2015, 8:12pm UTC](https://discuss.codemirror.net/t/autocomplete-ctrl-space-shortcut-conflict-with-old-firefox/288/2 "2015-07-02T20:12:34Z")

</div>

I looked into this at one time as well, and concluded that no, there is no workaround. You can use a different key combination, or provide an alternative combination for Firefox users.
