From e332387d43e670a20500a9bf3d7561535f42cc69 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 8 Oct 2023 22:55:52 +0300 Subject: [PATCH] allow shift+enter in chat --- 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 c758a77001..4972270739 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -181,7 +181,7 @@ function quote(t) { } ta.addEventListener("keydown", function(e) { - if (e.key === 'Enter' && !current_word) { + if (e.key === 'Enter' && !e.shiftKey && !current_word) { e.preventDefault(); send(); }