Ticket #5343: 5343.patch

File 5343.patch, 1.7 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/listblock/plugin.js

     
    195195
    196196                                                this.element.getDocument().getById( itemId + '_option' ).setAttribute( 'aria-selected', true );
    197197                                                this.element.setAttribute( 'aria-activedescendant', itemId + '_option' );
     198
     199                                                this.onMark && this.onMark( item );
    198200                                        },
    199201
    200202                                        unmark : function( value )
    201203                                        {
    202204                                                this.element.getDocument().getById( this._.items[ value ] ).removeClass( 'cke_selected' );
     205                                                this.onUnmark && this.onUnmark( this._.items[ value ] );
    203206                                        },
    204207
    205208                                        unmarkAll : function()
     
    211214                                                {
    212215                                                        doc.getById( items[ value ] ).removeClass( 'cke_selected' );
    213216                                                }
     217
     218                                                this.onUnmark && this.onUnmark();
    214219                                        },
    215220
    216221                                        isMarked : function( value )
  • _source/plugins/panel/plugin.js

     
    244244
    245245                this._.onKeyDown = block.onKeyDown && CKEDITOR.tools.bind( block.onKeyDown, block );
    246246
     247                block.onMark = function( item )
     248                {
     249                        holder.setAttribute( 'aria-activedescendant', item.getId() + '_option' );
     250                };
     251
     252                block.onUnmark = function()
     253                {
     254                        holder.removeAttribute( 'aria-activedescendant' );
     255                };
     256
    247257                block.show();
    248258
    249259                return block;
     
    303313                        if ( CKEDITOR.env.webkit )
    304314                                item.getDocument().getWindow().focus();
    305315                        item.focus();
     316
     317                        this.onMark && this.onMark( item );
    306318                }
    307319        },
    308320
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy