mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-24 07:54:07 +01:00
This commit is contained in:
parent
2c71478d83
commit
4f263b31cc
19 changed files with 110 additions and 88 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {openByMobile, writeText} from "../util/compatibility";
|
||||
import {isOnlyMeta, openByMobile, writeText} from "../util/compatibility";
|
||||
import {focusByRange} from "../util/selection";
|
||||
import {showMessage} from "../../dialog/message";
|
||||
import {isLocalPath, pathPosix} from "../../util/pathName";
|
||||
|
|
@ -98,7 +98,7 @@ export class Preview {
|
|||
event.preventDefault();
|
||||
if (isLocalPath(linkAddress)) {
|
||||
/// #if !MOBILE
|
||||
if (event.metaKey || event.ctrlKey) {
|
||||
if (isOnlyMeta(event)) {
|
||||
openBy(linkAddress, "folder");
|
||||
} else if (event.shiftKey) {
|
||||
openBy(linkAddress, "app");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue