Ticket #5513: 5513.patch

File 5513.patch, 977 bytes (added by Sa'ar Zac Elias, 14 years ago)
  • _source/plugins/dialog/plugin.js

     
    312312                        if ( me != CKEDITOR.dialog._.currentTop )
    313313                                return;
    314314
    315                         var keystroke = evt.data.getKeystroke();
     315                        var keystroke = evt.data.getKeystroke(),
     316                                rtl = editor.lang.dir == 'rtl';
    316317
    317318                        processed = 0;
    318319                        if ( keystroke == 9 || keystroke == CKEDITOR.SHIFT + 9 )
     
    345346                        else if ( ( keystroke == 37 || keystroke == 39 ) && me._.tabBarMode )
    346347                        {
    347348                                // Arrow keys - used for changing tabs.
    348                                 nextId = ( keystroke == 37 ? getPreviousVisibleTab.call( me ) : getNextVisibleTab.call( me ) );
     349                                nextId = ( keystroke == ( rtl ? 39 : 37 ) ? getPreviousVisibleTab.call( me ) : getNextVisibleTab.call( me ) );
    349350                                me.selectPage( nextId );
    350351                                me._.tabs[ nextId ][ 0 ].focus();
    351352                                processed = 1;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy