From dc3fc3eafe7fd39e56605271965beb1b126f7c35 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 7 Oct 2021 19:24:35 +0100 Subject: [PATCH] defused the bomb planted by @SeerLite --- src/js/input-controller.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/input-controller.js b/src/js/input-controller.js index 52baf6a59..d6b8cdc92 100644 --- a/src/js/input-controller.js +++ b/src/js/input-controller.js @@ -542,7 +542,6 @@ function handleChar(char, charIndex) { if (char !== "\n") { Caret.updatePosition(); } - } function handleTab(event) { @@ -782,7 +781,10 @@ $("#wordsInput").on("input", (event) => { // input will be modified even with the preventDefault() in // beforeinput/keydown if it's part of a compose sequence. this undoes // the effects of that and takes the input out of compose mode. - if (Config.layut !== "default" && inputValue.length >= TestLogic.input.current.length) { + if ( + Config.layout !== "default" && + inputValue.length >= TestLogic.input.current.length + ) { setWordsInput(" " + TestLogic.input.current); return; }