|
@@ -13,7 +13,7 @@ import {appearance} from "../config/appearance";
|
|
import {fetchPost, fetchSyncPost} from "../util/fetch";
|
|
import {fetchPost, fetchSyncPost} from "../util/fetch";
|
|
import {addGA, initAssets, setInlineStyle} from "../util/assets";
|
|
import {addGA, initAssets, setInlineStyle} from "../util/assets";
|
|
import {renderSnippet} from "../config/util/snippets";
|
|
import {renderSnippet} from "../config/util/snippets";
|
|
-import {checkFold, openFile, openFileById} from "../editor/util";
|
|
|
|
|
|
+import {openFile, openFileById} from "../editor/util";
|
|
import {focusByRange} from "../protyle/util/selection";
|
|
import {focusByRange} from "../protyle/util/selection";
|
|
import {exitSiYuan} from "../dialog/processSystem";
|
|
import {exitSiYuan} from "../dialog/processSystem";
|
|
import {isWindow} from "../util/functions";
|
|
import {isWindow} from "../util/functions";
|
|
@@ -28,6 +28,7 @@ import {App} from "../index";
|
|
import {initWindowEvent} from "./globalEvent/event";
|
|
import {initWindowEvent} from "./globalEvent/event";
|
|
import {sendGlobalShortcut} from "./globalEvent/keydown";
|
|
import {sendGlobalShortcut} from "./globalEvent/keydown";
|
|
import {closeWindow} from "../window/closeWin";
|
|
import {closeWindow} from "../window/closeWin";
|
|
|
|
+import {checkFold} from "../util/noRelyPCFunction";
|
|
|
|
|
|
const matchKeymap = (keymap: Record<string, IKeymapItem>, key1: "general" | "editor", key2?: "general" | "insert" | "heading" | "list" | "table") => {
|
|
const matchKeymap = (keymap: Record<string, IKeymapItem>, key1: "general" | "editor", key2?: "general" | "insert" | "heading" | "list" | "table") => {
|
|
if (key1 === "general") {
|
|
if (key1 === "general") {
|