Changeset 4186
- Timestamp:
- 09/04/09 11:55:42 (4 years ago)
- File:
-
- 1 edited
-
CKEditor/trunk/_source/plugins/toolbar/plugin.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/_source/plugins/toolbar/plugin.js
r4171 r4186 60 60 var itemKeystroke = function( item, keystroke ) 61 61 { 62 function isDisabled( item )63 {64 return item.id && CKEDITOR.document.getById( item.id ).hasClass( 'cke_disabled' );65 }66 62 switch ( keystroke ) 67 63 { … … 69 65 case 9 : // TAB 70 66 // Look for the next item in the toolbar. 71 // Jump to next toolbar if this one finishes. 72 // Skip non-focusable items (eg separators) and disabled ones also. 73 while ( ( item = item.next || ( item.toolbar.next && item.toolbar.next.items[ 0 ] ) ) && ( !item.focus || isDisabled( item ) ) ) 67 while ( ( item = item.next || ( item.toolbar.next && item.toolbar.next.items[ 0 ] ) ) && !item.focus ) 74 68 { /*jsl:pass*/ } 75 69 … … 86 80 case CKEDITOR.SHIFT + 9 : // SHIFT + TAB 87 81 // Look for the previous item in the toolbar. 88 // Jump to previous toolbar if this one finishes. 89 // Skip non-focusable items (eg separators) and disabled ones also. 90 while ( ( item = item.previous || ( item.toolbar.previous && item.toolbar.previous.items[ item.toolbar.previous.items.length - 1 ] ) ) && ( !item.focus || isDisabled( item ) ) ) 82 while ( ( item = item.previous || ( item.toolbar.previous && item.toolbar.previous.items[ item.toolbar.previous.items.length - 1 ] ) ) && !item.focus ) 91 83 { /*jsl:pass*/ } 92 84
Note: See TracChangeset
for help on using the changeset viewer.
