These functions are used to repetitively call a user specified callback method when a specific key or mouse click over a specific DOM node is held down for a specific amount of time. Only 1 such event is allowed to occur on the browser page at 1 time.
See the dijit/typematic reference documentation for more information.
Start listening for a specific typematic key. See also the trigger method for other parameters.
Parameter | Type | Description |
---|---|---|
node | DOMNode | |
keyObject | Object | an object defining the key to listen for:
|
_this | Object | |
callback | Function | |
subsequentDelay | Number | |
initialDelay | Number | |
minDelay | Number |
Optional
|
a connection handle
Start listening for a specific typematic key and mouseclick. This is a thin wrapper to addKeyListener and addMouseListener. See the addMouseListener and addKeyListener methods for other parameters.
Parameter | Type | Description |
---|---|---|
mouseNode | Node | the DOM node object to listen on for mouse events. |
keyNode | Node | the DOM node object to listen on for key events. |
keyObject | Object | |
_this | Object | |
callback | Function | |
subsequentDelay | Number | |
initialDelay | Number | |
minDelay | Number |
Optional
|
a connection handle
Start listening for a typematic mouse click. See the trigger method for other parameters.
Parameter | Type | Description |
---|---|---|
node | DOMNode | |
_this | Object | |
callback | Function | |
subsequentDelay | Number | |
initialDelay | Number | |
minDelay | Number |
Optional
|
a connection handle
Start a timed, repeating callback sequence. If already started, the function call is ignored. This method is not normally called by the user but can be when the normal listener code is insufficient.
Parameter | Type | Description |
---|---|---|
evt | Event | key or mouse event object |
_this | Object | pointer to the user's widget space. |
node | DOMNode | the DOM node object passed in |
callback | Function | function to call until the sequence is stopped called with 3 parameters: |
obj | Object | user space object used to uniquely identify each typematic sequence |
subsequentDelay | Number |
Optional if > 1, the number of milliseconds until the 3->n events occur or else the fractional time multiplier for the next event's delay, default=0.9 |
initialDelay | Number |
Optional the number of milliseconds until the 2nd event occurs, default=500ms |
minDelay | Number |
Optional the maximum delay in milliseconds for event to fire, default=10ms |