Skip to content
Enact

spotlight/Accelerator

Provides the spotlight/Acceleratorspotlight/Accelerator.Accelerator class.

Constructor
1 Param
frequencyArray(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
undefined

Cancels the Accelerator.

0 Params
Returns
undefined

Boolean

Verifies that the Accelerator is active.

0 Params
Returns
Boolean

true if the Accelerator is active; otherwise, false.


Boolean

Called with the current keydown event and callback, which will be called when the event is allowed through.

2 Params
eventObject

The current event to validate.

callbackFunction

The callback to execute.

Returns
Boolean

true if the event was consumed by processKey and callback was not called


undefined

Resets the Accelerator instance to the default values.

0 Params
Returns
undefined