mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 23:14:07 +01:00
This commit is contained in:
parent
5010c751f1
commit
a33ada4e2b
5 changed files with 87 additions and 36 deletions
|
|
@ -67,7 +67,7 @@ import {avKeydown} from "../render/av/keydown";
|
|||
import {checkFold} from "../../util/noRelyPCFunction";
|
||||
import {AIActions} from "../../ai/actions";
|
||||
import {openLink} from "../../editor/openLink";
|
||||
import {onluProtyleCommand} from "../../boot/globalEvent/command/protyle";
|
||||
import {onlyProtyleCommand} from "../../boot/globalEvent/command/protyle";
|
||||
|
||||
export const getContentByInlineHTML = (range: Range, cb: (content: string) => void) => {
|
||||
let html = "";
|
||||
|
|
@ -469,7 +469,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
}
|
||||
|
||||
if (matchHotKey(window.siyuan.config.keymap.general.enter.custom, event)) {
|
||||
onluProtyleCommand({
|
||||
onlyProtyleCommand({
|
||||
protyle,
|
||||
command: "enter",
|
||||
previousRange: range,
|
||||
|
|
@ -480,7 +480,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
}
|
||||
|
||||
if (matchHotKey(window.siyuan.config.keymap.general.enterBack.custom, event)) {
|
||||
onluProtyleCommand({
|
||||
onlyProtyleCommand({
|
||||
protyle,
|
||||
command: "enterBack",
|
||||
previousRange: range,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue