From 5c5fb2db0d48e4a0180742ca25bede722ec580f7 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Sat, 14 Jan 2023 01:43:44 +0100 Subject: [PATCH] send message: prevent insertion of formatted text; send text on CTRL+Enter / CMD+Enter --- public/index.html | 2 +- public/scripts/ui.js | 32 +++++++++++++++++--------------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/public/index.html b/public/index.html index 03aeba6..22951e5 100644 --- a/public/index.html +++ b/public/index.html @@ -152,7 +152,7 @@

Send a Message

-
+
Cancel diff --git a/public/scripts/ui.js b/public/scripts/ui.js index f9e2adc..343f985 100644 --- a/public/scripts/ui.js +++ b/public/scripts/ui.js @@ -226,19 +226,19 @@ class PeerUI { html() { let title; - let textInput; + let input; if (window.pasteMode.activated) { title = `Click to send ${window.pasteMode.descriptor} directly`; - textInput = ''; + input = ''; } else { title = 'Click to send files or right click to send a message'; - textInput = ''; + input = ''; } return `