interchangable dashes

This commit is contained in:
Miodec 2021-02-13 19:17:41 +00:00
parent 4d4987a5b0
commit 4c33d94d50

View file

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