This commit is contained in:
Vanessa 2023-12-12 12:09:31 +08:00
parent 20d27a93bd
commit 2b3b78485d
17 changed files with 36 additions and 25 deletions

View file

@ -13,7 +13,8 @@ import {initTabMenu} from "../../menus/tab";
import {getInstanceById} from "../../layout/util";
import {Tab} from "../../layout/Tab";
import {hideTooltip} from "../../dialog/tooltip";
import {checkFold, openFileById} from "../../editor/util";
import {openFileById} from "../../editor/util";
import {checkFold} from "../../util/noRelyPCFunction";
export const initWindowEvent = (app: App) => {
document.body.addEventListener("mouseleave", () => {

View file

@ -3,7 +3,7 @@ import * as path from "path";
/// #endif
import {matchHotKey} from "../../protyle/util/hotKey";
import {fetchPost} from "../../util/fetch";
import {checkFold, openFileById} from "../../editor/util";
import {openFileById} from "../../editor/util";
import {Constants} from "../../constants";
import {newFileByName} from "../../util/newFile";
import {App} from "../../index";
@ -15,6 +15,7 @@ import {showFileInFolder} from "../../util/pathName";
import {assetInputEvent, renderPreview, toggleAssetHistory} from "../../search/assets";
import {initSearchMenu} from "../../menus/search";
import {writeText} from "../../protyle/util/compatibility";
import {checkFold} from "../../util/noRelyPCFunction";
export const searchKeydown = (app: App, event: KeyboardEvent) => {
if (getSelection().rangeCount === 0) {