onKeyPress Event Removes Native Keyboard Navigation

When I attached an onKeyPress event for a grid, I noticed that I was no longer able to navigate with the standard keys that are enable by default.

Is there a way to prevent the keys from being completely overwritten? That is, is there a way to have these custom key events while still maintaining the native navigation present in the grid interface, or will I have to manually reassign these keys?


Please, make sure that you added return true at the end of onKeyPress event:

mygrid.attachEvent("onKeyPress",function(){ // any custom logic return true; });

That solved the issue – thanks.