Vanessa 2025-03-19 11:55:07 +08:00
parent 0b0c27b0ba
commit 66094077eb
3 changed files with 94 additions and 58 deletions

View file

@ -5,7 +5,8 @@ import {getCurrentEditor} from "../editor";
import {filterHotkey} from "../../boot/globalEvent/commonHotkey";
export const mobileKeydown = (app: App, event: KeyboardEvent) => {
if (filterHotkey(event, app)) {
// 移动端输入框默认填充无 event.key
if (!event.key || filterHotkey(event, app)) {
return;
}
const protyle = getCurrentEditor().protyle;