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++;