JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.2
[ckeditor.git] / _source / plugins / keystrokes / plugin.js
index d0d8173..73de2bb 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -28,14 +28,10 @@ CKEDITOR.plugins.add( 'keystrokes',
                        blockedKeystrokes       = editor.keystrokeHandler.blockedKeystrokes;\r
 \r
                for ( var i = 0 ; i < keystrokesConfig.length ; i++ )\r
-               {\r
                        keystrokes[ keystrokesConfig[i][0] ] = keystrokesConfig[i][1];\r
-               }\r
 \r
                for ( i = 0 ; i < blockedConfig.length ; i++ )\r
-               {\r
                        blockedKeystrokes[ blockedConfig[i] ] = 1;\r
-               }\r
        }\r
 });\r
 \r
@@ -214,5 +210,16 @@ CKEDITOR.config.keystrokes =
        [ CKEDITOR.CTRL + 73 /*I*/, 'italic' ],\r
        [ CKEDITOR.CTRL + 85 /*U*/, 'underline' ],\r
 \r
-       [ CKEDITOR.ALT + 109 /*-*/, 'toolbarCollapse' ]\r
+       [ CKEDITOR.ALT + 109 /*-*/, 'toolbarCollapse' ],\r
+       [ CKEDITOR.ALT + 48 /*0*/, 'a11yHelp' ]\r
 ];\r
+\r
+/**\r
+ * Fired when any keyboard key (or combination) is pressed into the editing area.\r
+ * @name CKEDITOR#key\r
+ * @event\r
+ * @param {Number} data.keyCode A number representing the key code (or\r
+ *             combination). It is the sum of the current key code and the\r
+ *             {@link CKEDITOR.CTRL}, {@link CKEDITOR.SHIFT} and {@link CKEDITOR.ALT}\r
+ *             constants, if those are pressed.\r
+ */\r