aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/pickEmotion.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2023-10-17 22:38:36 +0200
committerGitHub <noreply@github.com>2023-10-17 22:38:36 +0200
commit0036483242cd997761e7b05b80c706c33b880773 (patch)
tree64f432cd283c4f0e1bc2ea3fe16cdbab020018f3 /webAO/dom/pickEmotion.ts
parent755fb723b1e7882c37d66ec027eacb6bea5c63e6 (diff)
parent57f2f36d4e803b33482b8228d2ad0ff3aadc54fe (diff)
Merge pull request #192 from OmniTroid/pickemotion-focus
Focus input box when emotion is picked
Diffstat (limited to 'webAO/dom/pickEmotion.ts')
-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