Edit cell on keypress, like "e" key

grid.enableEditEvents(false, false, false);

this function allows you only one click, double click and f2, but double click i need to open form, one click i need for selecting, and f2 is very bad choice, it is too far from keyboard and not very user friendly,

so i choose “e” key, how to prevent inserting the “e” key inside the activated cell?

this is my code

		onKeyPress: function (code, cflag, sflag)
		{
			// if "e"
			if (code === 69) {
				var grid = this;
				grid.editCell();
				return false;
			}
			
			return true;
		},

but after the cell is activated the “e” key is automatically inserted inside,

do you have idea how to solve this?

thanks

Pleas,e try to call the editCell() method with a time out:

[code]onKeyPress: function (code, cflag, sflag)
{
// if “e”
if (code === 69) {
setTimeout(‘this.editCell()’,5)
return false;
}

return true;
},[/code]