mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 08:00:13 +01:00
This commit is contained in:
parent
cd82976170
commit
a7d951856c
7 changed files with 1564 additions and 61 deletions
|
|
@ -266,6 +266,7 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:
|
|||
}, {
|
||||
icon: "iconLayoutBottom",
|
||||
label: window.siyuan.languages.insertBottom,
|
||||
accelerator: "⇧Click",
|
||||
click: () => {
|
||||
openFileById({id, position: "bottom", action: [Constants.CB_GET_FOCUS]});
|
||||
}
|
||||
|
|
@ -273,14 +274,12 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:
|
|||
if (window.siyuan.config.fileTree.openFilesUseCurrentTab) {
|
||||
openSubmenus.push({
|
||||
label: window.siyuan.languages.openInNewTab,
|
||||
accelerator: "⌘Click",
|
||||
accelerator: "⌥⌘Click",
|
||||
click: () => {
|
||||
window.siyuan.ctrlIsPressed = true;
|
||||
openFileById({id, action: [Constants.CB_GET_FOCUS]});
|
||||
setTimeout(() => {
|
||||
// 勾选在当前页签中打开后,右键在新页签中打开,不重置的话后续点击都会打开新页签
|
||||
window.siyuan.ctrlIsPressed = false;
|
||||
}, Constants.TIMEOUT_INPUT);
|
||||
openFileById({
|
||||
id, action: [Constants.CB_GET_FOCUS],
|
||||
removeCurrentTab: false
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue