@@ -364,7 +364,7 @@ function setupTextarea(el, opts)
364
364
args . css ( 'height' , height ( 31 ) ) ;
365
365
hideAllWindows ( ) ;
366
366
argsDiv . css ( 'display' , 'block' ) ;
367
- args . focus ( ) ;
367
+ args . trigger ( "focus" ) ;
368
368
} ) ;
369
369
}
370
370
@@ -374,7 +374,7 @@ function setupTextarea(el, opts)
374
374
stdin . css ( 'height' , height ( 31 ) ) ;
375
375
hideAllWindows ( ) ;
376
376
stdinDiv . css ( 'display' , 'block' ) ;
377
- stdin . focus ( ) ;
377
+ stdin . trigger ( "focus" ) .
378
378
} ) ;
379
379
}
380
380
@@ -384,7 +384,7 @@ function setupTextarea(el, opts)
384
384
hideAllWindows ( ) ;
385
385
code . css ( 'display' , 'block' ) ;
386
386
editor . refresh ( ) ;
387
- editor . focus ( ) ;
387
+ editor . trigger ( "focus" ) ;
388
388
} ) ;
389
389
resetBtn . click ( function ( ) {
390
390
resetBtn . css ( 'display' , 'none' ) ;
@@ -413,7 +413,7 @@ function setupTextarea(el, opts)
413
413
outputDiv . css ( 'display' , 'block' ) ;
414
414
outputTitle . text ( "Application output" ) ;
415
415
output . html ( "Running..." ) ;
416
- output . focus ( ) ;
416
+ output . trigger ( "focus" ) ;
417
417
418
418
var data = {
419
419
code : opts . transformOutput ( editor . getValue ( ) , opts . compile )
0 commit comments