X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=sources%2Fplugins%2Frichcombo%2Fplugin.js;h=15b04b181bab53bc1358ffd0df8d6c1f721bcd18;hb=refs%2Ftags%2F4.7.3;hp=231a7c7e22946ae84a366237e066c115834efffe;hpb=c63493c899de714b05b0521bb38aab60d19030ef;p=perso%2FImmae%2FProjets%2Fpackagist%2Fludivine-ckeditor-component.git
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 ) {