X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ftoolbar%2Fplugin.js;h=891b450142078fadabc1e75b049daaaa1b6000a4;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=4b59f6d33bde4add33503d8fe6a6eebad295d9f6;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/plugins/toolbar/plugin.js b/_source/plugins/toolbar/plugin.js index 4b59f6d..891b450 100644 --- a/_source/plugins/toolbar/plugin.js +++ b/_source/plugins/toolbar/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -43,8 +43,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { editor.toolbox.focusCommandExecuted = true; - // Make the first button focus accessible. (#3417) - if ( CKEDITOR.env.ie ) + // Make the first button focus accessible for IE. (#3417) + // Adobe AIR instead need while of delay. + if ( CKEDITOR.env.ie || CKEDITOR.env.air ) setTimeout( function(){ editor.toolbox.focus(); }, 100 ); else editor.toolbox.focus(); @@ -60,14 +61,15 @@ For licensing, see LICENSE.html or http://ckeditor.com/license var itemKeystroke = function( item, keystroke ) { var next, nextToolGroup, groupItemsCount; + var rtl = editor.lang.dir == 'rtl'; switch ( keystroke ) { - case 39 : // RIGHT-ARROW + case rtl ? 37 : 39 : // RIGHT-ARROW case 9 : // TAB do { - // Look for the previous item in the toolbar. + // Look for the next item in the toolbar. next = item.next; if ( !next ) @@ -99,7 +101,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license return false; - case 37 : // LEFT-ARROW + case rtl ? 39 : 37 : // LEFT-ARROW case CKEDITOR.SHIFT + 9 : // SHIFT + TAB do { @@ -156,9 +158,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { editor.toolbox = new toolbox(); - var labelId = 'cke_' + CKEDITOR.tools.getNextNumber(); + var labelId = CKEDITOR.tools.getNextId(); - var output = [ '