diff --git a/app/src/editor/openLink.ts b/app/src/editor/openLink.ts index e0106e5a1..327f1a4aa 100644 --- a/app/src/editor/openLink.ts +++ b/app/src/editor/openLink.ts @@ -31,18 +31,18 @@ export const openLink = (protyle: IProtyle, aLink: string, event?: MouseEvent, c ) { if (event && event.altKey) { openAsset(protyle.app, linkAddress, pdfParams); - } else if (ctrlIsPressed) { - /// #if !BROWSER - openBy(linkAddress, "folder"); - /// #else - openByMobile(linkAddress); - /// #endif } else if (event && event.shiftKey) { /// #if !BROWSER openBy(linkAddress, "app"); /// #else openByMobile(linkAddress); /// #endif + } else if (ctrlIsPressed) { + /// #if !BROWSER + openBy(linkAddress, "folder"); + /// #else + openByMobile(linkAddress); + /// #endif } else { openAsset(protyle.app, linkAddress, pdfParams, "right"); } diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 630ecfb71..62f3d6185 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);