From bfcbe5a95d870b8080d33cbbacf3fde36c476e69 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 23 Sep 2023 21:42:33 +0200 Subject: chat submit with any enter key --- client-web/source/chat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-web/source/chat.ts b/client-web/source/chat.ts index cfcbe64..a38a135 100644 --- a/client-web/source/chat.ts +++ b/client-web/source/chat.ts @@ -40,7 +40,7 @@ export class Chat { this.send_el = send send.onkeydown = (ev) => { - if (ev.code == "Enter") { + if (ev.key == "Enter") { if (send.value.trim().length == 0) { // keybind for toggle chat is Enter, so lets close here return chat_control(false) -- cgit v1.2.3-70-g09d2