aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2023-10-17 21:12:41 +0200
committerDavid Skoland <davidskoland@gmail.com>2023-10-17 21:12:41 +0200
commit57f2f36d4e803b33482b8228d2ad0ff3aadc54fe (patch)
tree64f432cd283c4f0e1bc2ea3fe16cdbab020018f3
parent755fb723b1e7882c37d66ec027eacb6bea5c63e6 (diff)
Focus input box when emotion is picked
-rw-r--r--webAO/dom/pickEmotion.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/webAO/dom/pickEmotion.ts b/webAO/dom/pickEmotion.ts
index b72583f..619d0ab 100644
--- a/webAO/dom/pickEmotion.ts
+++ b/webAO/dom/pickEmotion.ts
@@ -20,5 +20,7 @@ export function pickEmotion(emo: number) {
(<HTMLInputElement>document.getElementById("sendpreanim")).checked =
client.emote.zoom == 1;
+
+ (<HTMLInputElement>document.getElementById("client_inputbox")).focus();
}
window.pickEmotion = pickEmotion; \ No newline at end of file