Detect when in edit mode
I'm trying to disable the backspace button when it's not being used to edit the grid. This code should work pending my ability to fill in the if statement -
How can I detect whether or not I am in edit mode? Thanks in advance!
obj.onKeyBackspace = function(event){
// if not in edit mode, cancel the backspace
if(/* not in edit mode */)
{
event.cancelBubble = true;
event.returnValue = false;
}
}
How can I detect whether or not I am in edit mode? Thanks in advance!
Chris
June 29,