Skip to content

Commit

Permalink
fix #12028 (#12540)
Browse files Browse the repository at this point in the history
  • Loading branch information
TCOTC authored Sep 21, 2024
1 parent bf1ce8d commit 28e3ce7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/menus/protyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {transaction, updateTransaction} from "../protyle/wysiwyg/transaction";
import {openMenu} from "./commonMenuItem";
import {fetchPost} from "../util/fetch";
import {Constants} from "../constants";
import {copyPlainText, readText, setStorageVal, updateHotkeyTip, writeText} from "../protyle/util/compatibility";
import {copyPlainText, isMac, readText, setStorageVal, writeText} from "../protyle/util/compatibility";
import {preventScroll} from "../protyle/scroll/preventScroll";
import {onGet} from "../protyle/util/onGet";
import {getAllModels} from "../layout/getAll";
Expand Down Expand Up @@ -382,7 +382,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 + "/" + updateHotkeyTip("⌘") + window.siyuan.languages.click,
accelerator: window.siyuan.config.keymap.editor.general.refTab.custom + "/" + isMac() ? "⌘" : "Ctrl+" + window.siyuan.languages.click,
click() {
checkFold(refBlockId, (zoomIn) => {
openFileById({
Expand All @@ -398,7 +398,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 + "/" + updateHotkeyTip("⌥") + window.siyuan.languages.click,
accelerator: window.siyuan.config.keymap.editor.general.insertRight.custom + "/" + isMac() ? "⌥" : "Alt+" + window.siyuan.languages.click,
click() {
checkFold(refBlockId, (zoomIn, action, isRoot) => {
if (!isRoot) {
Expand All @@ -417,7 +417,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 ? "/" : "") + updateHotkeyTip("⇧") + window.siyuan.languages.click,
accelerator: window.siyuan.config.keymap.editor.general.insertBottom.custom + (window.siyuan.config.keymap.editor.general.insertBottom.custom ? "/" : "") + isMac() ? "⇧" : "Shift+" + window.siyuan.languages.click,
click() {
checkFold(refBlockId, (zoomIn, action, isRoot) => {
if (!isRoot) {
Expand Down

0 comments on commit 28e3ce7

Please sign in to comment.