shortcuts (Namespace)
Description
Shortcuts
Methods
-
shortcut
- ch.onkeybackspace | ch.onkeytab | ch.onkeyenter | ch.onkeyesc | ch.onkeyleftarrow | ch.onkeyuparrow | ch.onkeyrightarrow | ch.onkeydownarrow : Shortcut to subscribe. -
name
- String : A name to add in the collection. -
callback
- function : A given function. -
name
- String : A given name from the collection. -
name
- String : A given name from the collection. -
name
- String : A name to remove from the collection. -
shortcut
- ch.onkeybackspace | ch.onkeytab | ch.onkeyenter | ch.onkeyesc | ch.onkeyleftarrow | ch.onkeyuparrow | ch.onkeyrightarrow | ch.onkeydownarrow : Shortcut to unsubscribe. -
callback
- function : A given function.
.add(shortcut, name, callback) → {Object}
Add a callback to a shortcut with given name.
.off(name) → {Object}
Turn off shortcuts associated to a given name.
.on(name) → {Object}
Turn on shortcuts associated to a given name.
.remove(name, shortcut, callback) → {Object}
Removes a callback from a shortcut with given name.