Functiondijit.typematic.addKeyListener

dojo.require("dijit");
defined in dijit/_base/typematic.js

Start listening for a specific typematic key.

Usage

function (/*DOMNode*/ node, /*Object*/ keyObject, /*Object*/ _this, /*Function*/ callback, /*Number*/ subsequentDelay, /*Number*/ initialDelay) (view source)
parametertypedescription
nodeDOMNode 
keyObjectObjectan object defining the key to listen for. key: (mandatory) the keyCode (number) or character (string) to listen for. ctrlKey: desired ctrl key state to initiate the calback sequence: pressed (true) released (false) either (unspecified) altKey: same as ctrlKey but for the alt key shiftKey: same as ctrlKey but for the shift key See the trigger method for other parameters. Returns an array of dojo.connect handles
_thisObject 
callbackFunction 
subsequentDelayNumber 
initialDelayNumber