KeyManager source
Dispatches events to a key composer. There can only be one.
Specializes Montage
The KeyManager dispatches KeyComposer events when it detects a keyComposer has been pressed or released. Do not create a KeyManager directly but instead require for the defaultKeyManager:
require("core/event/key-manager").defaultKeyManager
Properties
-
longPressThreshold :number source
-
The number of milliseconds a key must be pressed in order to dispatch a longKeyPress event.
Default Value: - 1000
Methods
-
callDelegateMethod(name) source
-
This method calls the method named with the identifier prefix if it exists. Example: If the name parameter is "shouldDoSomething" and the caller's identifier is "bob", then this method will try and call "bobShouldDoSomething"
Parameters:
Name Type Description namestring Inherited From: -
equals(anObject) → {boolean} source
-
Returns true if two objects are equal, otherwise returns false.
Parameters:
Name Type Description anObjectObject The object to compare for equality.
Inherited From: Returns: boolean
Returns
trueif the calling object andanObjectare identical and theiruuidproperties are also equal. Otherwise, returnsfalse. -
registerKey() source
-
Register a composerKey.
Parameters:
Name Type Description keyComposer.Object The key to register.
-
unregisterKey(keyComposer) source
-
Unregister a composerKey. if a key has been registered multiple time, unregister must be called the same amount of time before the key is actually unregistered.
Parameters:
Name Type Description keyComposerObject The key to unregister.
Generated from a4679af