X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fspecialchar%2Fdialogs%2Fspecialchar.js;h=0fba305db68fb1f0e4e71297cc3698aadf6e08d3;hb=039a051ccf3901311661022a30afd60fc38130c9;hp=ae15b02a611948c11bff10280877493c2ad480a5;hpb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;p=ckeditor.git diff --git a/_source/plugins/specialchar/dialogs/specialchar.js b/_source/plugins/specialchar/dialogs/specialchar.js index ae15b02..0fba305 100644 --- a/_source/plugins/specialchar/dialogs/specialchar.js +++ b/_source/plugins/specialchar/dialogs/specialchar.js @@ -112,8 +112,8 @@ CKEDITOR.dialog.add( 'specialchar', function( editor ) // Get an Anchor element. var element = ev.getTarget(); var relative, nodeToMove; - var keystroke = ev.getKeystroke(); - var rtl = editor.lang.dir == 'rtl'; + var keystroke = ev.getKeystroke(), + rtl = editor.lang.dir == 'rtl'; switch ( keystroke ) { @@ -347,11 +347,11 @@ CKEDITOR.dialog.add( 'specialchar', function( editor ) focus : function() { var firstChar = this.getElement().getElementsByTag( 'a' ).getItem( 0 ); - setTimeout(function() + setTimeout( function() { firstChar.focus(); onFocus( null, firstChar ); - }); + }, 0 ); }, onShow : function() { @@ -360,7 +360,7 @@ CKEDITOR.dialog.add( 'specialchar', function( editor ) { firstChar.focus(); onFocus( null, firstChar ); - }); + }, 0 ); }, onLoad : function( event ) {