Key Press even tin dhtmlxgrid

Hi

I’m not able to restrict alphabets in dhtlxgrid using keypress event in firefox.In
IE it is working.

mygrid.attachEvent(“onKeyPress”,function(key){
if(key==8 || key==46 || key==49 || key==50 || key==51 || key==52 || key==53 || key==54 || key==55 || key==56 || key==57){
return true;
}
else{
return false;
}
})

This is the code i’m using. Can anyone help me in resolving the firefox issue

Unfortunately the issue cannot be reconstructed locally.
Your code works well for us in IE and firefox.

If issue still occurs for you, please, provide withe a demo link or a complete demo, where the issue can be reproduced.

Thanks For reply.

Unfortunately for me it is not working in Firefox 17.0.9 version. Its working perfectly fine in IE8

Unfortunately for me it is not working in Firefox 17.0.9 version.

Your code works well for us in IE and firefox.
If issue still occurs for you, please, provide withe a demo link or a complete demo, where the issue can be reproduced.

mygrid.attachEvent(“onKeyPress”,function(key,ctrl,shift,e){
if(key==8 || key==46 || key==49 || key==50 || key==51 || key==52 || key==53 || key==54 || key==55 || key==56 || key==57){
return true;
}
else{
e.preventDefault();e.stopPropagation(); e.cancelBubble= !0; return false;
}
})

WORK FOR IE ET FF