Browse Source

:art: https://github.com/siyuan-note/siyuan/issues/11323

Vanessa 1 năm trước cách đây
mục cha
commit
4128a8cab2
2 tập tin đã thay đổi với 8 bổ sung8 xóa
  1. 5 5
      app/src/menus/protyle.ts
  2. 3 3
      app/src/menus/util.ts

+ 5 - 5
app/src/menus/protyle.ts

@@ -363,7 +363,7 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
     window.siyuan.menus.menu.append(new MenuItem({
         label: window.siyuan.languages.openBy,
         icon: "iconOpen",
-        accelerator: window.siyuan.config.keymap.editor.general.openBy.custom + "/Click",
+        accelerator: window.siyuan.config.keymap.editor.general.openBy.custom + "/" + window.siyuan.languages.click,
         click() {
             checkFold(refBlockId, (zoomIn, action) => {
                 openFileById({
@@ -378,7 +378,7 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
     window.siyuan.menus.menu.append(new MenuItem({
         label: window.siyuan.languages.refTab,
         icon: "iconEyeoff",
-        accelerator: window.siyuan.config.keymap.editor.general.refTab.custom + "/⌘Click",
+        accelerator: window.siyuan.config.keymap.editor.general.refTab.custom + "/⌘" + window.siyuan.languages.click,
         click() {
             checkFold(refBlockId, (zoomIn) => {
                 openFileById({
@@ -394,7 +394,7 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
     window.siyuan.menus.menu.append(new MenuItem({
         label: window.siyuan.languages.insertRight,
         icon: "iconLayoutRight",
-        accelerator: window.siyuan.config.keymap.editor.general.insertRight.custom + "/⌥Click",
+        accelerator: window.siyuan.config.keymap.editor.general.insertRight.custom + "/⌥" + window.siyuan.languages.click,
         click() {
             checkFold(refBlockId, (zoomIn, action) => {
                 openFileById({
@@ -410,7 +410,7 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
     window.siyuan.menus.menu.append(new MenuItem({
         label: window.siyuan.languages.insertBottom,
         icon: "iconLayoutBottom",
-        accelerator: window.siyuan.config.keymap.editor.general.insertBottom.custom + (window.siyuan.config.keymap.editor.general.insertBottom.custom ? "/" : "") + "⇧Click",
+        accelerator: window.siyuan.config.keymap.editor.general.insertBottom.custom + (window.siyuan.config.keymap.editor.general.insertBottom.custom ? "/" : "") + "⇧" + window.siyuan.languages.click,
         click() {
             checkFold(refBlockId, (zoomIn, action) => {
                 openFileById({
@@ -1392,7 +1392,7 @@ export const tagMenu = (protyle: IProtyle, tagElement: HTMLElement) => {
     /// #if !MOBILE
     window.siyuan.menus.menu.append(new MenuItem({
         label: window.siyuan.languages.search,
-        accelerator: "Click",
+        accelerator: window.siyuan.languages.click,
         icon: "iconSearch",
         click() {
             openGlobalSearch(protyle.app, `#${tagElement.textContent}#`, false);

+ 3 - 3
app/src/menus/util.ts

@@ -37,7 +37,7 @@ export const openEditorTab = (app: App, ids: string[], notebookId?: string, path
     const openSubmenus: IMenu[] = [{
         icon: "iconLayoutRight",
         label: window.siyuan.languages.insertRight,
-        accelerator: ids.length === 1 ? `${updateHotkeyTip(window.siyuan.config.keymap.editor.general.insertRight.custom)}/${updateHotkeyTip("⌥Click")}` : undefined,
+        accelerator: ids.length === 1 ? `${updateHotkeyTip(window.siyuan.config.keymap.editor.general.insertRight.custom)}/${updateHotkeyTip("⌥" + window.siyuan.languages.click)}` : undefined,
         click: () => {
             if (notebookId) {
                 openFileById({
@@ -63,7 +63,7 @@ export const openEditorTab = (app: App, ids: string[], notebookId?: string, path
     }, {
         icon: "iconLayoutBottom",
         label: window.siyuan.languages.insertBottom,
-        accelerator: ids.length === 1 ? "⇧Click" : "",
+        accelerator: ids.length === 1 ? "⇧" + window.siyuan.languages.click : "",
         click: () => {
             if (notebookId) {
                 openFileById({
@@ -90,7 +90,7 @@ export const openEditorTab = (app: App, ids: string[], notebookId?: string, path
     if (window.siyuan.config.fileTree.openFilesUseCurrentTab) {
         openSubmenus.push({
             label: window.siyuan.languages.openInNewTab,
-            accelerator: ids.length === 1 ? "⌥⌘Click" : undefined,
+            accelerator: ids.length === 1 ? "⌥⌘" + window.siyuan.languages.click : undefined,
             click: () => {
                 if (notebookId) {
                     openFileById({