DHTMLX Docs & Samples Explorer

onKeyPress Event

Required library edition: This method requires Professional Edition of the DHTMLX library

This event occurs after a key was pressed but before the default key processing starts. onKeyPress event passes the following parameters:

  • code - key code;
  • cFlag - control key flag;
  • sFlag - shift key flag.
        grid.attachEvent("onKeyPress", function(code,cFlag,sFlag){});