From 71828e6528f366ff1db3cc544f06c6540ac3635d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 26 Aug 2022 21:28:29 +0200 Subject: [PATCH] fix Enter on iOS (chat) --- files/assets/js/chat.js | 4 +--- files/templates/chat.html | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 170cbb7b6..d4e6e2410 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -120,9 +120,7 @@ function quote(t) { } textbox.addEventListener("keyup", function(e) { - console.log(e.shiftKey) - console.log(e.key) - if (!e.shiftKey && e.key === 'Enter') { + if (e.key === 'Enter') { e.preventDefault(); send() } diff --git a/files/templates/chat.html b/files/templates/chat.html index 510430838..b73e2f003 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -214,6 +214,6 @@ - + \ No newline at end of file