From 9434450d26ac43e17902e9e392c11f38a978c639 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sun, 3 Nov 2024 14:56:46 -0600 Subject: [PATCH] focus on box on reply --- src/webpage/channel.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webpage/channel.ts b/src/webpage/channel.ts index e442ff8..f1451ce 100644 --- a/src/webpage/channel.ts +++ b/src/webpage/channel.ts @@ -731,6 +731,8 @@ class Channel extends SnowFlake{ this.replyingto.div.classList.remove("replying"); } this.replyingto = message; + const typebox = document.getElementById("typebox") as HTMLElement; + typebox.focus(); if(!this.replyingto?.div)return; console.log(message); this.replyingto.div.classList.add("replying");