spotlight/Accelerator
Provides the spotlight/Acceleratorspotlight/Accelerator.Accelerator class.
Interactive Demo
Section titled “Interactive Demo ”Members
Section titled “Members ”Accelerator Class
Section titled “Accelerator   Class ”Constructor
Accelerator(frequency)
Section titled “Accelerator(frequency)”1 Param
- frequency Array(Number)
Controls the frequency with which the acceleration will "freeze". While frozen, the current target item cannot change, and all events are directed to it.
Returns
Methods
cancel()
Section titled “cancel()”Cancels the Accelerator.
0 Params
Returns
- undefined
isAccelerating()
Section titled “isAccelerating()”Verifies that the Accelerator is active.
0 Params
Returns
- Boolean
trueif the Accelerator is active; otherwise,false.
processKey(event, callback)
Section titled “processKey(event, callback)”Called with the current keydown event and callback, which will be called when the event is allowed through.
2 Params
- event Object
The current event to validate.
- callback Function
The callback to execute.
Returns
- Boolean
trueif the event was consumed by processKey and callback was not called
reset()
Section titled “reset()”Resets the Accelerator instance to the default values.
0 Params
Returns
- undefined