Ticket #3085: 3085.patch

File 3085.patch, 1.2 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/menu/plugin.js

     
    124124                                                        className : editor.skinClass + ' cke_contextmenu'
    125125                                                },
    126126                                                this._.level);
    127 
     127                                       
     128                                        panel.onEscape = CKEDITOR.tools.bind( this.hide, this );
    128129                                        // Create an autosize block inside the panel.
    129130                                        var block = panel.addBlock( this.id );
    130131                                        block.autoSize = true;
     132                                       
     133                                        var keys = block.keys;
     134                                        keys[ 40 ]      = 'next';                                       // ARROW-DOWN
     135                                        keys[ 9 ]       = 'next';                                       // TAB
     136                                        keys[ 38 ]      = 'prev';                                       // ARROW-UP
     137                                        keys[ CKEDITOR.SHIFT + 9 ]      = 'prev';       // SHIFT + TAB
     138                                        keys[ 32 ]      = 'click';                                      // SPACE
     139                                        keys[ 37 ]      = 'click';                                      // ARROW-RIGHT
    131140
    132141                                        element = this._.element = block.element;
    133142                                        element.addClass( editor.skinClass );
     
    253262                                        ' class="', classes, '" href="javascript:void(\'', ( this.label || '' ).replace( "'", '' ), '\')"' +
    254263                                        ' title="', this.label, '"' +
    255264                                        ' tabindex="-1"' +
     265                                        '_cke_focus=1' +
    256266                                        ' hidefocus="true"' );
    257267
    258268                        // Some browsers don't cancel key events in the keydown but in the
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy