Vanessa 2025-03-14 21:54:40 +08:00
parent b91432f996
commit af382ca0b3
6 changed files with 34 additions and 6 deletions

View file

@ -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