mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 08:16:10 +01:00
This commit is contained in:
parent
65c5bfcb63
commit
b8370abd1f
2 changed files with 11 additions and 3 deletions
|
|
@ -54,7 +54,10 @@ export class Breadcrumb {
|
|||
if (id) {
|
||||
if (protyle.options.render.breadcrumbDocName && window.siyuan.ctrlIsPressed) {
|
||||
/// #if !MOBILE
|
||||
openFileById({id, action: [Constants.CB_GET_FOCUS]});
|
||||
openFileById({
|
||||
id,
|
||||
action: id === protyle.block.rootID ? [Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL]
|
||||
});
|
||||
/// #endif
|
||||
} else {
|
||||
zoomOut(protyle, id);
|
||||
|
|
@ -173,7 +176,9 @@ export class Breadcrumb {
|
|||
icon: "iconDownload",
|
||||
label: `${window.siyuan.languages.insertAsset}${uploadHTML}`,
|
||||
}).element;
|
||||
uploadMenu.querySelector("input").addEventListener("change", (event: InputEvent & { target: HTMLInputElement }) => {
|
||||
uploadMenu.querySelector("input").addEventListener("change", (event: InputEvent & {
|
||||
target: HTMLInputElement
|
||||
}) => {
|
||||
if (event.target.files.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1436,7 +1436,10 @@ export class WYSIWYG {
|
|||
const breadcrumbId = backlinkBreadcrumbItemElement.getAttribute("data-id");
|
||||
if (breadcrumbId) {
|
||||
if (window.siyuan.ctrlIsPressed) {
|
||||
openFileById({id: breadcrumbId, action: [Constants.CB_GET_FOCUS]});
|
||||
openFileById({
|
||||
id: breadcrumbId,
|
||||
action: breadcrumbId === protyle.block.rootID ? [Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL]
|
||||
});
|
||||
} else {
|
||||
loadBreadcrumb(protyle, backlinkBreadcrumbItemElement);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue