Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Vanessa43c37ae92519
diff --git a/app/src/editor/openLink.ts b/app/src/editor/openLink.ts
index e0106e5a1a..327f1a4aad 100644
--- a/app/src/editor/openLink.ts
+++ b/app/src/editor/openLink.ts
@@ -31,15 +31,15 @@ export const openLink = (protyle: IProtyle, aLink: string, event?: MouseEvent, c
) {
if (event && event.altKey) {
openAsset(protyle.app, linkAddress, pdfParams);
- } else if (ctrlIsPressed) {
+ } else if (event && event.shiftKey) {
/// #if !BROWSER
- openBy(linkAddress, "folder");
+ openBy(linkAddress, "app");
/// #else
openByMobile(linkAddress);
/// #endif
- } else if (event && event.shiftKey) {
+ } else if (ctrlIsPressed) {
/// #if !BROWSER
- openBy(linkAddress, "app");
+ openBy(linkAddress, "folder");
/// #else
openByMobile(linkAddress);
/// #endif
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 630ecfb71d..62f3d6185c 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -2177,7 +2177,7 @@ export class WYSIWYG {
if (backlinkBreadcrumbItemElement) {
const breadcrumbId = backlinkBreadcrumbItemElement.getAttribute("data-id");
if (breadcrumbId) {
- if (ctrlIsPressed) {
+ if (ctrlIsPressed && !event.shiftKey && !event.altKey) {
checkFold(breadcrumbId, (zoomIn) => {
openFileById({
app: protyle.app,
@@ -2373,7 +2373,7 @@ export class WYSIWYG {
}
const tagElement = hasClosestByAttribute(event.target, "data-type", "tag");
- if (tagElement && !event.altKey) {
+ if (tagElement && !event.altKey && !event.shiftKey) {
/// #if !MOBILE
openGlobalSearch(protyle.app, `#${tagElement.textContent}#`, !ctrlIsPressed, {method: 0});
hideElements(["dialog"]);
@@ -2769,7 +2769,7 @@ export class WYSIWYG {
focusByRange(range);
}
- if (ctrlIsPressed && range.toString() === "") {
+ if (ctrlIsPressed && range.toString() === "" && !event.shiftKey && !event.altKey) {
let ctrlElement = hasClosestBlock(event.target);
if (ctrlElement) {
const embedBlockElement = isInEmbedBlock(ctrlElement);