mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-11 15:12:33 +01:00
This commit is contained in:
parent
b91432f996
commit
af382ca0b3
6 changed files with 34 additions and 6 deletions
|
|
@ -75,6 +75,7 @@ import {duplicateCompletely} from "../../protyle/render/av/action";
|
|||
import {copyTextByType} from "../../protyle/toolbar/util";
|
||||
import {onlyProtyleCommand} from "./command/protyle";
|
||||
import {cancelDrag} from "./dragover";
|
||||
import {bindAVPanelKeydown} from "../../protyle/render/av/keydown";
|
||||
|
||||
const switchDialogEvent = (app: App, event: MouseEvent) => {
|
||||
event.preventDefault();
|
||||
|
|
@ -1276,6 +1277,11 @@ export const windowKeyDown = (app: App, event: KeyboardEvent) => {
|
|||
return;
|
||||
}
|
||||
|
||||
if (bindAVPanelKeydown(event)) {
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
if (["Home", "End", "ArrowUp", "ArrowDown"].includes(event.key)) {
|
||||
let matchDialog: Dialog;
|
||||
// 需找到最顶层的,因此不能用 find
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue