mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-16 13:45:29 +01:00
This commit is contained in:
parent
53f6030a56
commit
fc3b0fcef4
4 changed files with 57 additions and 5 deletions
|
|
@ -74,6 +74,7 @@ import {getContentByInlineHTML} from "../../protyle/wysiwyg/keydown";
|
|||
import {searchKeydown} from "./searchKeydown";
|
||||
import {openNewWindow} from "../../window/openNewWindow";
|
||||
import {historyKeydown} from "../../history/keydown";
|
||||
import {zoomOut} from "../../menus/protyle";
|
||||
|
||||
const switchDialogEvent = (app: App, event: MouseEvent) => {
|
||||
event.preventDefault();
|
||||
|
|
@ -327,6 +328,11 @@ const editKeydown = (app: App, event: KeyboardEvent) => {
|
|||
if (target.tagName !== "TABLE" && ["INPUT", "TEXTAREA"].includes(target.tagName)) {
|
||||
return false;
|
||||
}
|
||||
if (matchHotKey(window.siyuan.config.keymap.editor.general.exitFocus.custom, event)) {
|
||||
event.preventDefault();
|
||||
zoomOut({protyle, id: protyle.block.rootID, focusId: protyle.block.id});
|
||||
return true;
|
||||
}
|
||||
if (matchHotKey(window.siyuan.config.keymap.editor.general.backlinks.custom, event)) {
|
||||
event.preventDefault();
|
||||
if (range) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue