Skip to content
Permalink
Browse files

Merge branch 't/9286'

  • Loading branch information...
oleq committed Oct 2, 2012
2 parents cd27ab1 + 5164085 commit 761577b56903a1fb040b01647e797496641cf646
Showing with 21 additions and 0 deletions.
  1. +21 −0 core/keystrokehandler.js
@@ -115,6 +115,27 @@ CKEDITOR.keystrokeHandler = function( editor ) {
* [ CKEDITOR.ALT + 109, 'toolbarCollapse' ] // ALT + -
* ];
*
* To reset a particular keystroke, the following approach can be used:
*
* // Disable default CTRL + L keystroke which executes link command.
* config.keystrokes = [
* ...
* [ CKEDITOR.CTRL + 76, null ], // CTRL + L
* ...
* ];
*
* To reset all default keystrokes an {@link CKEDITOR#instanceReady} callback should be
* used. This is since editor defaults are merged rather than overwritten by
* user keystrokes.
*
* <strong>NOTE</strong>: This can be potentially harmful for an editor. Avoid this unless you're
* aware of the consequences.
*
* // Reset all default keystrokes.
* config.on.instanceReady = function() {
* this.keystrokeHandler.keystrokes = [];
* }
*
* @cfg {Array} [keystrokes=see an example]
* @member CKEDITOR.config
*/

0 comments on commit 761577b

Please sign in to comment.
You can’t perform that action at this time.