]> git.immae.eu Git - perso/Immae/Projets/packagist/ludivine-ckeditor-component.git/blobdiff - sources/plugins/richcombo/plugin.js
Update to 4.7.3
[perso/Immae/Projets/packagist/ludivine-ckeditor-component.git] / sources / plugins / richcombo / plugin.js
index 231a7c7e22946ae84a366237e066c115834efffe..15b04b181bab53bc1358ffd0df8d6c1f721bcd18 100644 (file)
@@ -37,7 +37,7 @@ CKEDITOR.plugins.add( 'richcombo', {
        template +=\r
                ' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event,this);"' +\r
                ' onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" ' +\r
-                       ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188\r
+                       ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // http://dev.ckeditor.com/ticket/188\r
                                '="CKEDITOR.tools.callFunction({clickFn},this);return false;">' +\r
                        '<span id="{id}_text" class="cke_combo_text cke_combo_inlinelabel">{label}</span>' +\r
                        '<span class="cke_combo_open">' +\r
@@ -160,7 +160,7 @@ CKEDITOR.plugins.add( 'richcombo', {
                                };\r
 \r
                                function updateState() {\r
-                                       // Don't change state while richcombo is active (#11793).\r
+                                       // Don't change state while richcombo is active (http://dev.ckeditor.com/ticket/11793).\r
                                        if ( this.getState() == CKEDITOR.TRISTATE_ON )\r
                                                return;\r
 \r
@@ -189,15 +189,6 @@ CKEDITOR.plugins.add( 'richcombo', {
 \r
                                        var keystroke = ev.getKeystroke();\r
 \r
-                                       // ARROW-DOWN\r
-                                       // This call is duplicated in plugins/toolbar/plugin.js in itemKeystroke().\r
-                                       // Move focus to the first element after drop down was opened by the arrow down key.\r
-                                       if ( keystroke == 40 ) {\r
-                                               editor.once( 'panelShow', function( evt ) {\r
-                                                       evt.data._.panel._.currentBlock.onKeyDown( 40 );\r
-                                               } );\r
-                                       }\r
-\r
                                        switch ( keystroke ) {\r
                                                case 13: // ENTER\r
                                                case 32: // SPACE\r
@@ -266,12 +257,6 @@ CKEDITOR.plugins.add( 'richcombo', {
 \r
                                        if ( me.onOpen )\r
                                                me.onOpen();\r
-\r
-                                       // The "panelShow" event is fired assinchronously, after the\r
-                                       // onShow method call.\r
-                                       editor.once( 'panelShow', function() {\r
-                                               list.focus( !list.multiSelect && me.getValue() );\r
-                                       } );\r
                                };\r
 \r
                                panel.onHide = function( preventOnClose ) {\r