From 365486477e4b04a73364127c191e6f9b1814aa04 Mon Sep 17 00:00:00 2001 From: Fabio Pliger Date: Wed, 13 Apr 2022 19:38:26 -0500 Subject: [PATCH] add focus when repl is rendered --- pyscriptjs/src/components/pyrepl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyscriptjs/src/components/pyrepl.ts b/pyscriptjs/src/components/pyrepl.ts index 51b5140f..361c01df 100644 --- a/pyscriptjs/src/components/pyrepl.ts +++ b/pyscriptjs/src/components/pyrepl.ts @@ -190,7 +190,7 @@ export class PyRepl extends HTMLElement { } this.appendChild(mainDiv); - + this.editor.focus(); console.log('connected'); }