Ticket #4733: 4733.patch

File 4733.patch, 835 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/dialog/plugin.js

     
    264264                        if ( focusList.length < 1 )
    265265                                return;
    266266
    267                         var currentIndex = ( me._.currentFocusIndex + offset + focusList.length ) % focusList.length;
     267                        var startIndex = ( me._.currentFocusIndex + offset + focusList.length ) % focusList.length,
     268                                currentIndex = startIndex;
    268269                        while ( !focusList[ currentIndex ].isFocusable() )
    269270                        {
    270271                                currentIndex = ( currentIndex + offset + focusList.length ) % focusList.length;
    271                                 if ( currentIndex == me._.currentFocusIndex )
     272                                if ( currentIndex == startIndex )
    272273                                        break;
    273274                        }
    274275                        focusList[ currentIndex ].focus();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy