From cf2bcb7f5018955591ac4ad940eef0e1e1a823d0 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 21 Dec 2020 18:58:55 +0000 Subject: [PATCH] fixed autofocus stopping tab enter --- src/js/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/script.js b/src/js/script.js index 3cb51fb42..31ae94e9f 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -4531,7 +4531,7 @@ $(document).keydown(function (event) { !$("#customTextPopupWrapper").hasClass("hidden") || !$("#customMode2PopupWrapper").hasClass("hidden"); if (pageTestActive && !commandLineVisible && !modePopupVisible) { - if (!wordsFocused && event.key !== "Enter" && event.key !== "Space") { + if (!wordsFocused && event.key !== "Enter") { focusWords(); return; } @@ -4649,7 +4649,7 @@ function handleBackspace(event) { if (addspace) { currentInput += " "; } - } else if(event.metaKey){ + } else if (event.metaKey) { currentInput = ""; } else { currentInput = currentInput.substring(0, currentInput.length - 1);