]> git.scottworley.com Git - vopamoi/blobdiff - vopamoi.ts
Don't listen for keystrokes until log replay is done
[vopamoi] / vopamoi.ts
index e99777c6e986c91235060b22630b74b007808efc..633ffefba8a52067eb77584c1494cac78d45e4fd 100644 (file)
@@ -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 });
 }