X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2Fpackagist%2Fludivine-ckeditor-component.git;a=blobdiff_plain;f=sources%2Fplugins%2Frichcombo%2Fplugin.js;fp=sources%2Fplugins%2Frichcombo%2Fplugin.js;h=15b04b181bab53bc1358ffd0df8d6c1f721bcd18;hp=231a7c7e22946ae84a366237e066c115834efffe;hb=1794320dcfdfcd19572fb1676294f9853a6bbc20;hpb=7183f6a6a21ad9124e70c997e0168459f377a9f2 diff --git a/sources/plugins/richcombo/plugin.js b/sources/plugins/richcombo/plugin.js index 231a7c7..15b04b1 100644 --- a/sources/plugins/richcombo/plugin.js +++ b/sources/plugins/richcombo/plugin.js @@ -37,7 +37,7 @@ CKEDITOR.plugins.add( 'richcombo', { template += ' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event,this);"' + ' onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" ' + - ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188 + ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // http://dev.ckeditor.com/ticket/188 '="CKEDITOR.tools.callFunction({clickFn},this);return false;">' + '{label}' + '' + @@ -160,7 +160,7 @@ CKEDITOR.plugins.add( 'richcombo', { }; function updateState() { - // Don't change state while richcombo is active (#11793). + // Don't change state while richcombo is active (http://dev.ckeditor.com/ticket/11793). if ( this.getState() == CKEDITOR.TRISTATE_ON ) return; @@ -189,15 +189,6 @@ CKEDITOR.plugins.add( 'richcombo', { var keystroke = ev.getKeystroke(); - // ARROW-DOWN - // This call is duplicated in plugins/toolbar/plugin.js in itemKeystroke(). - // Move focus to the first element after drop down was opened by the arrow down key. - if ( keystroke == 40 ) { - editor.once( 'panelShow', function( evt ) { - evt.data._.panel._.currentBlock.onKeyDown( 40 ); - } ); - } - switch ( keystroke ) { case 13: // ENTER case 32: // SPACE @@ -266,12 +257,6 @@ CKEDITOR.plugins.add( 'richcombo', { if ( me.onOpen ) me.onOpen(); - - // The "panelShow" event is fired assinchronously, after the - // onShow method call. - editor.once( 'panelShow', function() { - list.focus( !list.multiSelect && me.getValue() ); - } ); }; panel.onHide = function( preventOnClose ) {