fix: improve word test logic
This commit is contained in:
parent
2338129425
commit
b86a732edd
|
|
@ -239,7 +239,11 @@ let currentPracticeSentenceIndex = $ref(-1)
|
|||
async function onTyping(e: KeyboardEvent) {
|
||||
if (isWordTest) {
|
||||
if (e.code === 'Space') {
|
||||
completeTypeWord(false)
|
||||
if (completeSelect) {
|
||||
completeTypeWord(false)
|
||||
} else {
|
||||
select(e, -1)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue