Skip to content
Snippets Groups Projects
Commit 29a277ba authored by Andreas Gohr's avatar Andreas Gohr
Browse files

IE doesn't know indexOf for arrays FS#2381

this fixes another IE javascript problem in edit mode
parent 8d739053
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,7 @@ var dw_editor = { ...@@ -130,7 +130,7 @@ var dw_editor = {
* @param event e - the key press event object * @param event e - the key press event object
*/ */
keyHandler: function(e){ keyHandler: function(e){
if([8, 13, 32].indexOf(e.keyCode) === -1) { if(jQuery.inArray(e.keyCode,[8, 13, 32]) === -1) {
return; return;
} }
var selection = getSelection(this); var selection = getSelection(this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment