Vanessa 2024-05-27 10:47:23 +08:00
parent cf4c5396ab
commit eb54ebe5ac
3 changed files with 9 additions and 1 deletions

View file

@ -366,6 +366,7 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
accelerator: window.siyuan.config.keymap.editor.general.openBy.custom + "/" + window.siyuan.languages.click,
click() {
checkFold(refBlockId, (zoomIn, action) => {
action.push(Constants.CB_GET_HL);
openFileById({
app: protyle.app,
id: refBlockId,
@ -397,6 +398,7 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
accelerator: window.siyuan.config.keymap.editor.general.insertRight.custom + "/⌥" + window.siyuan.languages.click,
click() {
checkFold(refBlockId, (zoomIn, action) => {
action.push(Constants.CB_GET_HL);
openFileById({
app: protyle.app,
id: refBlockId,
@ -413,6 +415,7 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
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) => {
action.push(Constants.CB_GET_HL);
openFileById({
app: protyle.app,
id: refBlockId,