dijit.typematic.addKeyListener
dojo.require("dijit");
defined in dijit/_base/typematic.js
Start listening for a specific typematic key.
Usage
parameter | type | description |
---|---|---|
node | DOMNode | |
keyObject | Object | an 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 |
_this | Object | |
callback | Function | |
subsequentDelay | Number | |
initialDelay | Number |