TinyMCE:API/tinymce.Editor/addShortcut
From Moxiecode Documentation Wiki
Contents |
[edit]
Method: addShortcut
[edit]
Summary
Adds a keyboard shortcut for some command or function.
[edit]
Syntax
<bool> addShortcut(<String> pa, <String> desc, <String/Function> cmd_func, <Object> sc)
[edit]
Parameters
- pa
- Shortcut pattern. Like for example: ctrl+alt+o.
- desc
- Text description for the command.
- cmd_func
- Command name string or function to execute when the key is pressed.
- sc
- Optional scope to execute the function in.
[edit]
Returns
true/false state if the shortcut was added or not.
