Ticket #3417: 3417.patch

File 3417.patch, 717 bytes (added by Martin Kou, 15 years ago)
  • _source/plugins/toolbar/plugin.js

     
    4040                                if ( editor.toolbox )
    4141                                {
    4242                                        editor.toolbox.focusCommandExecuted = true;
    43                                         editor.toolbox.focus();
     43
     44                                        // Make the first button focus accessible. (#3417)
     45                                        if ( CKEDITOR.env.gecko )
     46                                        {
     47                                                CKEDITOR.document.getWindow().$.focus();
     48                                                editor.toolbox.focus();
     49                                        }
     50                                        else if ( CKEDITOR.env.ie )
     51                                                setTimeout( function(){ editor.toolbox.focus(); }, 100 );
     52                                        else
     53                                                editor.toolbox.focus();
    4454                                }
    4555                        }
    4656                }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy