Class Index | File Index

Classes


Class mindmaps.ShortcutController


Defined in: ShortcutController.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a new ShortcutController.
Field Summary
Field Attributes Field Name and Description
<private>  
Method Summary
Method Attributes Method Name and Description
<inner>  
getType(shortcut, type)
Set the event type and add namespace for later removal.
 
register(shortcut, handler, type)
Registers a new application wide shortcut.
 
unregister(shortcut, type)
Unregisters a application shortcut.
 
Removes all shortcuts.
Class Detail
mindmaps.ShortcutController()
Creates a new ShortcutController. This object takes care of all keyboard shortcuts.
Field Detail
<private> shortcuts
Method Detail
<inner> {String} getType(shortcut, type)
Set the event type and add namespace for later removal.
Parameters:
{String} shortcut
the key combination
{String} type Optional, Default: "keydown"
Returns:
{String}

register(shortcut, handler, type)
Registers a new application wide shortcut.
Parameters:
{String} shortcut
{Function} handler
{String} type Optional, Default: "keydown"

unregister(shortcut, type)
Unregisters a application shortcut.
Parameters:
{String} shortcut
{String} type Optional, Default: "keydown"

unregisterAll()
Removes all shortcuts.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 18 2011 18:03:15 GMT+0000 (WEST)