From 7ef93b6f22c024a5220db44ed525d9ed82780ed0 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 30 Sep 2021 13:41:28 +0100 Subject: [PATCH] fixed enter key support --- src/js/input-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/input-controller.js b/src/js/input-controller.js index 39d2e0b64..0977e0395 100644 --- a/src/js/input-controller.js +++ b/src/js/input-controller.js @@ -417,7 +417,7 @@ function handleChar(char, charIndex) { char = " "; } - if (/\s/.test(char)) { + if (char !== "\n" && /\s/.test(char)) { handleSpace(); //insert space for expert and master or strict space,