]> git.scottworley.com Git - vopamoi/commitdiff
Don't listen for keystrokes until log replay is done
authorScott Worley <scottworley@scottworley.com>
Thu, 27 Jan 2022 23:32:16 +0000 (15:32 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 27 Jan 2022 23:32:16 +0000 (15:32 -0800)
vopamoi.ts

index e99777c6e986c91235060b22630b74b007808efc..633ffefba8a52067eb77584c1494cac78d45e4fd 100644 (file)
@@ -465,7 +465,7 @@ function handleKey(event: any) {
 }
 
 function browserInit() {
 }
 
 function browserInit() {
-  document.body.addEventListener("keydown", handleKey, { capture: false });
   log.replay();
   browserUI.firstVisibleTask()?.focus();
   log.replay();
   browserUI.firstVisibleTask()?.focus();
+  document.body.addEventListener("keydown", handleKey, { capture: false });
 }
 }