@@ -364,7 +364,7 @@ function setupTextarea(el, opts)
364364 args . css ( 'height' , height ( 31 ) ) ;
365365 hideAllWindows ( ) ;
366366 argsDiv . css ( 'display' , 'block' ) ;
367- args . focus ( ) ;
367+ args . trigger ( "focus" ) ;
368368 } ) ;
369369 }
370370
@@ -374,7 +374,7 @@ function setupTextarea(el, opts)
374374 stdin . css ( 'height' , height ( 31 ) ) ;
375375 hideAllWindows ( ) ;
376376 stdinDiv . css ( 'display' , 'block' ) ;
377- stdin . focus ( ) ;
377+ stdin . trigger ( "focus" ) .
378378 } ) ;
379379 }
380380
@@ -384,7 +384,7 @@ function setupTextarea(el, opts)
384384 hideAllWindows ( ) ;
385385 code . css ( 'display' , 'block' ) ;
386386 editor . refresh ( ) ;
387- editor . focus ( ) ;
387+ editor . trigger ( "focus" ) ;
388388 } ) ;
389389 resetBtn . click ( function ( ) {
390390 resetBtn . css ( 'display' , 'none' ) ;
@@ -413,7 +413,7 @@ function setupTextarea(el, opts)
413413 outputDiv . css ( 'display' , 'block' ) ;
414414 outputTitle . text ( "Application output" ) ;
415415 output . html ( "Running..." ) ;
416- output . focus ( ) ;
416+ output . trigger ( "focus" ) ;
417417
418418 var data = {
419419 code : opts . transformOutput ( editor . getValue ( ) , opts . compile )
0 commit comments