From: Scott Worley Date: Thu, 27 Jan 2022 23:32:16 +0000 (-0800) Subject: Don't listen for keystrokes until log replay is done X-Git-Url: http://git.scottworley.com/vopamoi/commitdiff_plain/bd267c298a7d31760d9e78e250bb40650d03c5a0?ds=inline Don't listen for keystrokes until log replay is done --- diff --git a/vopamoi.ts b/vopamoi.ts index e99777c..633ffef 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -465,7 +465,7 @@ function handleKey(event: any) { } function browserInit() { - document.body.addEventListener("keydown", handleKey, { capture: false }); log.replay(); browserUI.firstVisibleTask()?.focus(); + document.body.addEventListener("keydown", handleKey, { capture: false }); }