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:
-
propertiesArrayThe properties to update.
addAccel
(
-
id -
keys -
callback -
safe
Add an accelerator.
Parameters:
-
idStringAn unique id for the accelerator.
-
keysStringThe keys of the accelerator (see the keyCombo section of http://robertwhurst.github.io/KeyboardJS/ ).
-
callbackFunction -
safeBooleanIf 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 [, ...]]])
