onEditCell return false when keydown arrow keys

Hi. I want to make ‘if … else’ sentence in onEditCell.
If keydown arrow keys, return false to onEditCell and if keydown abc…(normal keys), return true to onEditCell.
I know ‘return false’ makes this function do move cell position without edit cell. I want to make this like excel. So if type something text, then start to edit mode.

myGrid.attachEvent('onEditCell', function (stage, rId, cInd, nValue, oValue) { return false; }

I tried this but return false access not onEditCell function but onkeydown function.

myGrid.attachEvent('onEditCell', function (stage, rId, cInd, nValue, oValue) { if (stage == 0) { document.onkeydown = function (e) { e = e || window.event; if (e.which || e.keyCode == 37, 38, 39, 40) { //arrow up,down,left,right keys return false; } else //other keys { return true; } } }

I recommend you to use the _key_events function instead of onEditCell event usage.
For example:
_key_events:{
k39_0_0: function(){ //default action for the “right arrow” in dhtmlxGrid. (zeros are for the “ctrl” and “shift” keys)
if (!this.editor&&this.isTreeGrid())
this.expandKids(this.row)
else
return false;
},
}

I recommend you to use the _key_events function instead of onEditCell event usage.
For example:
_key_events:{
k39_0_0: function(){ //default action for the “right arrow” in dhtmlxGrid. (zeros are for the “ctrl” and “shift” keys)
if (!this.editor&&this.isTreeGrid())
this.expandKids(this.row)
else
return false;
},
}