DHTMLX Docs & Samples Explorer

onKeyDown

fires when the native 'onkeydown' event is triggered

Parameters:

  • inp - (object) the input element that fires the event
  • ev - (object) the event object
  • id - (string) the item id (the value of attribute name)
  • value - (string) the item value (for radios only)
myForm.attachEvent("onKeyDown",function(inp, ev, id, value){
	//any custom logic here
});

Applicable to: input, select, btn2state checkbox, radio