touch operation

This commit is contained in:
Gabe Yuan
2023-11-11 16:59:38 +08:00
parent 46428b7c7f
commit 4b23ee733f
11 changed files with 58 additions and 168 deletions

View File

@@ -647,6 +647,10 @@ export const I18N = {
zh: `触屏设置`,
en: `Touch Setting`,
},
touch_translate_shortcut: {
zh: `触屏翻译快捷方式`,
en: `Touch Translate Shortcut`,
},
touch_tap_0: {
zh: `禁用`,
en: `Disable`,

View File

@@ -404,14 +404,6 @@ export const TRANS_MIN_LENGTH = 5; // 最短翻译长度
export const TRANS_MAX_LENGTH = 5000; // 最长翻译长度
export const TRANS_NEWLINE_LENGTH = 20; // 换行字符数
// 触屏操作
export const DEFAULT_TOUCH_OPERATION = {
[OPT_SHORTCUT_TRANSLATE]: [2, 1, 500],
[OPT_SHORTCUT_STYLE]: [3, 1, 500],
[OPT_SHORTCUT_POPUP]: [0, 1, 500],
[OPT_SHORTCUT_SETTING]: [3, 2, 500],
};
export const DEFAULT_SETTING = {
darkMode: false, // 深色模式
uiLang: "en", // 界面语言
@@ -431,7 +423,7 @@ export const DEFAULT_SETTING = {
shortcuts: DEFAULT_SHORTCUTS, // 快捷键
inputRule: DEFAULT_INPUT_RULE, // 输入框设置
tranboxSetting: DEFAULT_TRANBOX_SETTING, // 划词翻译设置
touchOperations: DEFAULT_TOUCH_OPERATION, // 触屏操作
touchTranslate: 2, // 触屏翻译
};
export const DEFAULT_RULES = [GLOBLA_RULE];