diff options
-rw-r--r-- | client-web/source/chat.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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) |