Class mindmaps.ShortcutController
Defined in: ShortcutController.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new ShortcutController.
|
Field Attributes | Field Name and Description |
---|---|
<private> |
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.