Skip to content

Commit 9f8f8bf

Browse files
committed
fix
1 parent bc5725b commit 9f8f8bf

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,10 @@ function typo() {
503503
504504
function play() {
505505
if (settingStore.wordPracticeType === WordPracticeType.Dictation || settingStore.dictation) {
506-
typo()
506+
if (!showWordResult.value && !right) {
507+
//输入完成,或者已显示的情况下,不记入错误
508+
typo()
509+
}
507510
}
508511
volumeIconRef?.play()
509512
}

packages/core/src/config/env.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ export const PronunciationApi = 'https://dict.youdao.com/dictvoice?audio='
115115
export const DefaultShortcutKeyMap = {
116116
[ShortcutKey.EditArticle]: 'Ctrl+E',
117117
[ShortcutKey.ShowWord]: 'Escape',
118-
[ShortcutKey.Previous]: 'Alt+⬅',
119-
[ShortcutKey.Next]: 'Alt+➡',
118+
[ShortcutKey.Previous]: 'Ctrl+⬅',
119+
[ShortcutKey.Next]: 'Ctrl+➡',
120120
[ShortcutKey.Ignore]: 'Tab',
121121
[ShortcutKey.ToggleSimple]: '`',
122122
[ShortcutKey.ToggleCollect]: 'Enter',
123-
[ShortcutKey.PreviousChapter]: 'Ctrl+⬅',
124-
[ShortcutKey.NextChapter]: 'Ctrl+➡',
123+
[ShortcutKey.PreviousChapter]: 'Alt+⬅',
124+
[ShortcutKey.NextChapter]: 'Alt+➡',
125125
[ShortcutKey.NextStep]: 'Shift+➡',
126126
[ShortcutKey.RepeatChapter]: 'Ctrl+Enter',
127127
[ShortcutKey.DictationChapter]: 'Alt+Enter',

0 commit comments

Comments
 (0)