summaryrefslogtreecommitdiff
path: root/client-web/source/chat.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-09-08 16:36:42 +0200
committermetamuffin <metamuffin@disroot.org>2023-09-08 16:36:42 +0200
commit60c2247b4bd0086099b872233390e99b23ddd81c (patch)
treeac0d80a805a2998326448e8d96868b64226b3695 /client-web/source/chat.ts
parent88aba515c04c0ccb1b1e7535078f180558c02b2a (diff)
downloadkeks-meet-60c2247b4bd0086099b872233390e99b23ddd81c.tar
keks-meet-60c2247b4bd0086099b872233390e99b23ddd81c.tar.bz2
keks-meet-60c2247b4bd0086099b872233390e99b23ddd81c.tar.zst
readd check automatic focus
Diffstat (limited to 'client-web/source/chat.ts')
-rw-r--r--client-web/source/chat.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/client-web/source/chat.ts b/client-web/source/chat.ts
index bbb668f..01e8eae 100644
--- a/client-web/source/chat.ts
+++ b/client-web/source/chat.ts
@@ -40,9 +40,7 @@ export class Chat {
if (ev.code == "Enter") {
if (send.value.trim().length == 0) {
// keybind for toggle chat is Enter, so lets close here
- // TODO! open
- // this.control.check = false
- return
+ return chat_control(false)
}
this.send({ text: send.value })
send.value = ""
@@ -67,7 +65,6 @@ export class Chat {
}
}
- on_show(): void { this.focus() }
focus() { this.send_el.focus() }
send(msg: ChatMessage) {
this.room.local_user.chat(msg)