photonui.AccelManager Class
Manage keyboard accelerators.
Constructor
photonui.AccelManager
()
Item Index
Methods
Properties
Methods
_bindEvent
(
private
-
id
-
element
-
evName
-
callback
-
[options]
Javascript event binding (for internal use).
Parameters:
_callCallbacks
(
private
-
wEvent
-
params
Call all callbacks for the given wEvent.
NOTE: the first argument passed to the callback is the current widget.
NOTEĀ²: if the thisArg of the callback is null, this will be binded to the current widget.
_updateProperties
(
deprecated
private
-
properties
Force the update of the given properties.
This method is deprecated.
One should use '@photonui-update' abitbol's annotation on concerned properties.
Parameters:
-
properties
ArrayThe properties to update.
addAccel
(
-
id
-
keys
-
callback
-
safe
Add an accelerator.
Parameters:
-
id
StringAn unique id for the accelerator.
-
keys
StringThe keys of the accelerator (see the keyCombo section of http://robertwhurst.github.io/KeyboardJS/ ).
-
callback
Function -
safe
BooleanIf true, the accelerator is disable if a field/textArea is focused (optional, default=true)
destroy
()
Destroy the class.
registerCallback
(
-
id
-
wEvent
-
callback
-
thisArg
Register a callback for any PhotonUI/Widget event (called wEvent).
Callback signature:
function (Object(Base/Widget) [, arg1 [, arg2 [, ...]]])