DHTMLX Docs & Samples Explorer

onEditKeyPress Event

Parameters:

  • key code
  • control key flag
  • shift key flag
  • native event object
  view.attachEvent("onEditKeyPress", function (code, ctrl, shift, ev){
       //any custom logic here
       return true;
  });

Event can be used to define on which key edit process will be stopped

view.attachEvent("onEditKeyPress", function (code, ctrl, shift, ev){
	if (code == 13)
		this.stopEdit();
	return true;
});