mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 05:17:51 +08:00
checking key instead of code. could work for #1941
This commit is contained in:
parent
223d7d4757
commit
59839f67ea
1 changed files with 2 additions and 2 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue