checking key instead of code. could work for #1941

This commit is contained in:
Jack 2021-10-04 19:08:01 +01:00
parent 223d7d4757
commit 59839f67ea

View file

@ -306,7 +306,7 @@ export function updateWordElement(showError = !Config.blindMode) {
if (
input.search(Misc.trailingComposeChars) < currentWord.length &&
currentWord.slice(0, inputWithoutComposeLength) ===
input.slice(0, inputWithoutComposeLength)
input.slice(0, inputWithoutComposeLength)
) {
correctSoFar = true;
}
@ -1010,7 +1010,7 @@ $("#wordsInput").on("focusout", () => {
});
$(document).on("keypress", "#restartTestButton", (event) => {
if (event.keyCode == 13) {
if (event.key == "Enter") {
ManualRestart.reset();
if (
TestLogic.active &&