From cb5835624df63439c670d4b4fcd53ad33bb2beaa Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 2 Aug 2023 10:53:26 +0300 Subject: [PATCH] dont make pressing enter on inline emoji modal in chat send message --- files/assets/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 8f62a7c26..e33ec7b94 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -201,7 +201,7 @@ function quote(t) { } ta.addEventListener("keyup", function(e) { - if (e.key === 'Enter') { + if (e.key === 'Enter' && !current_word) { e.preventDefault(); send(); }