diff --git a/src/components/Practice/PracticeArticle/TypingArticle.vue b/src/components/Practice/PracticeArticle/TypingArticle.vue index ae7f8a54..48a4eaec 100644 --- a/src/components/Practice/PracticeArticle/TypingArticle.vue +++ b/src/components/Practice/PracticeArticle/TypingArticle.vue @@ -1,7 +1,7 @@ @@ -35,6 +77,10 @@ useWatchAllSound() 其他设置 +
+ + 快捷键设置 +
Build {{ gitLastCommitHash }} @@ -230,6 +276,22 @@ useWatchAllSound()
+
+
+ +
快捷键(点击可修改)
+
+
+ +
+
+ + 直接按键盘进行设置 +
+
{{ item[1] }}
+
+
+
@@ -254,7 +316,7 @@ useWatchAllSound() padding: 10rem 20rem; display: flex; flex-direction: column; - align-items: center; + //align-items: center; //justify-content: center; gap: 10rem; @@ -272,14 +334,13 @@ useWatchAllSound() } } - .git-log{ + .git-log { font-size: 10rem; color: gray; margin-bottom: 5rem; } } - .content { background: var(--color-header-bg); flex: 1; @@ -310,6 +371,17 @@ useWatchAllSound() font-size: 12rem; color: gray; } + + .set-key { + align-items: center; + + input { + width: 100rem; + margin-right: 10rem; + height: 24rem; + outline: none; + } + } } .main-title { diff --git a/src/types.ts b/src/types.ts index 008dbcd8..add20852 100644 --- a/src/types.ts +++ b/src/types.ts @@ -157,13 +157,15 @@ export enum Sort { reverse = 2 } -export const ShortKeyMap = { +export const ShortcutKeyMap = { Show: 'Escape', Ignore: 'Tab', Remove: '`', Collect: 'Enter', } + + export enum TranslateEngine { Baidu = 0, }