Ticket #4733: 4733.patch
File 4733.patch, 835 bytes (added by , 15 years ago) |
---|
-
_source/plugins/dialog/plugin.js
264 264 if ( focusList.length < 1 ) 265 265 return; 266 266 267 var currentIndex = ( me._.currentFocusIndex + offset + focusList.length ) % focusList.length; 267 var startIndex = ( me._.currentFocusIndex + offset + focusList.length ) % focusList.length, 268 currentIndex = startIndex; 268 269 while ( !focusList[ currentIndex ].isFocusable() ) 269 270 { 270 271 currentIndex = ( currentIndex + offset + focusList.length ) % focusList.length; 271 if ( currentIndex == me._.currentFocusIndex )272 if ( currentIndex == startIndex ) 272 273 break; 273 274 } 274 275 focusList[ currentIndex ].focus();