mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 21:48:06 +01:00
🚨
This commit is contained in:
parent
dd19b9bc44
commit
2ae388d2bb
9 changed files with 18 additions and 23 deletions
|
|
@ -1,9 +1,7 @@
|
|||
import {
|
||||
focusBlock,
|
||||
focusByOffset,
|
||||
focusByRange,
|
||||
getEditorRange,
|
||||
getSelectionOffset,
|
||||
} from "../util/selection";
|
||||
import {fetchPost} from "../../util/fetch";
|
||||
import {replaceFileName, validateName} from "../../editor/rename";
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import {Constants} from "../../constants";
|
|||
import {onGet} from "../util/onGet";
|
||||
|
||||
export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent) => {
|
||||
const target = event.target as HTMLElement
|
||||
const target = event.target as HTMLElement;
|
||||
if (matchHotKey(window.siyuan.config.keymap.editor.general.copyHPath.custom, event)) {
|
||||
fetchPost("/api/filetree/getHPathByID", {
|
||||
id: protyle.block.rootID
|
||||
|
|
@ -65,4 +65,4 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent) => {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ import {
|
|||
isNotEditBlock,
|
||||
} from "./getBlock";
|
||||
import {matchHotKey} from "../util/hotKey";
|
||||
import {fullscreen} from "../breadcrumb/action";
|
||||
import {enter} from "./enter";
|
||||
import {fixTable} from "../util/table";
|
||||
import {phTransaction, transaction, turnsIntoTransaction, updateTransaction} from "./transaction";
|
||||
|
|
@ -39,7 +38,6 @@ import {setPosition} from "../../util/setPosition";
|
|||
import {removeEmbed} from "./removeEmbed";
|
||||
import {openAttr} from "../../menus/commonMenuItem";
|
||||
import {Constants} from "../../constants";
|
||||
import {addLoading, setPadding} from "../ui/initUI";
|
||||
import {preventScroll} from "../scroll/preventScroll";
|
||||
import {bindMenuKeydown} from "../../menus/Menu";
|
||||
import {fetchPost} from "../../util/fetch";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue