From 60c2247b4bd0086099b872233390e99b23ddd81c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 8 Sep 2023 16:36:42 +0200 Subject: readd check automatic focus --- client-web/source/chat.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'client-web/source/chat.ts') 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) -- cgit v1.2.3-70-g09d2