tinymce.Shortcuts

Contains all logic for handling of keyboard shortcuts.

Examples

editor.shortcuts.add('ctrl+a', function() {});
editor.shortcuts.add('meta+a', function() {}); // "meta" maps to Command on Mac and Ctrl on PC
editor.shortcuts.add('ctrl+alt+a', function() {});
editor.shortcuts.add('access+a', function() {}); // "access" maps to ctrl+alt on Mac and shift+alt on PC

Methods

name summary defined by
add() Adds a keyboard shortcut for some command or function. tinymce.Shortcuts
remove() Remove a keyboard shortcut by pattern. tinymce.Shortcuts

Methods

add

add(pattern:String, desc:String, cmdFunc:String, scope:Object):Boolean

Adds a keyboard shortcut for some command or function.

Parameters
Return value

remove

remove(pattern:String):Boolean

Remove a keyboard shortcut by pattern.

Parameters
Return value

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.