From 4c33d94d5086a1376655ad38dc3e7decbaab81c0 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sat, 13 Feb 2021 19:17:41 +0000 Subject: [PATCH] interchangable dashes --- src/js/script.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/script.js b/src/js/script.js index 792279e40..6760681f9 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -5599,6 +5599,11 @@ function handleAlpha(event) { thisCharCorrect = true; } + if ((event.key === "–" || event.key === "—") && nextCharInWord == "-") { + event.key = "-"; + thisCharCorrect = true; + } + if (!thisCharCorrect) { accuracyStats.incorrect++; currentError.count++;