X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fkeystrokes%2Fplugin.js;h=b49a893a39baa5518c664e6faa8c1909003d1dc1;hb=4e90e78dc97789709ee7404359a5517540c27553;hp=d0d8173d330f86470d77182afbee0feabc6c39c9;hpb=8761695d9b70afe75905deaac88f78c1f8aeb32d;p=ckeditor.git diff --git a/_source/plugins/keystrokes/plugin.js b/_source/plugins/keystrokes/plugin.js index d0d8173..b49a893 100644 --- a/_source/plugins/keystrokes/plugin.js +++ b/_source/plugins/keystrokes/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -28,14 +28,10 @@ CKEDITOR.plugins.add( 'keystrokes', blockedKeystrokes = editor.keystrokeHandler.blockedKeystrokes; for ( var i = 0 ; i < keystrokesConfig.length ; i++ ) - { keystrokes[ keystrokesConfig[i][0] ] = keystrokesConfig[i][1]; - } for ( i = 0 ; i < blockedConfig.length ; i++ ) - { blockedKeystrokes[ blockedConfig[i] ] = 1; - } } }); @@ -214,5 +210,16 @@ CKEDITOR.config.keystrokes = [ CKEDITOR.CTRL + 73 /*I*/, 'italic' ], [ CKEDITOR.CTRL + 85 /*U*/, 'underline' ], - [ CKEDITOR.ALT + 109 /*-*/, 'toolbarCollapse' ] + [ CKEDITOR.ALT + ( CKEDITOR.env.ie || CKEDITOR.env.webkit ? 189 : 109 ) /*-*/, 'toolbarCollapse' ], + [ CKEDITOR.ALT + 48 /*0*/, 'a11yHelp' ] ]; + +/** + * Fired when any keyboard key (or combination) is pressed into the editing area. + * @name CKEDITOR.editor#key + * @event + * @param {Number} data.keyCode A number representing the key code (or + * combination). It is the sum of the current key code and the + * {@link CKEDITOR.CTRL}, {@link CKEDITOR.SHIFT} and {@link CKEDITOR.ALT} + * constants, if those are pressed. + */