Skip to content

Commit 6fdc084

Browse files
authored
Merge pull request #279 from wysha-object/fix-input-lock
fix: inputLock
2 parents a4670ef + 5f67495 commit 6fdc084

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/components/word/TypeWord.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ async function onTyping(e: KeyboardEvent) {
457457
input += letter
458458
wrong = ''
459459
playKeyboardAudio()
460+
inputLock = false
460461
} else {
461462
typo()
462463
wrong = letter
@@ -465,6 +466,7 @@ async function onTyping(e: KeyboardEvent) {
465466
setTimeout(() => {
466467
if (settingStore.inputWrongClear && !isTypingSentence()) input = ''
467468
wrong = ''
469+
inputLock = false
468470
}, 500)
469471
}
470472
// 更新当前单词信息
@@ -484,8 +486,6 @@ async function onTyping(e: KeyboardEvent) {
484486
completeTypeWord(true)
485487
}
486488
}
487-
} else {
488-
inputLock = false
489489
}
490490
}
491491
}

0 commit comments

Comments
 (0)