fix(editor): 新文档回到顶部 + 超链接用系统浏览器打开 + 链接气泡仅选中时弹出

This commit is contained in:
hunter-dev
2026-09-25 22:42:03 +08:00
parent dc1d6b43dd
commit 1e30abfac4
6 changed files with 49 additions and 2 deletions
+2
View File
@@ -43,6 +43,7 @@ export const IPC = {
appearanceSave: 'appearance:save',
keymapLoad: 'keymap:load',
keymapSave: 'keymap:save',
openExternal: 'open:external',
} as const;
export type IpcChannel = (typeof IPC)[keyof typeof IPC];
@@ -86,6 +87,7 @@ export interface IpcMap {
[IPC.appearanceSave]: { args: { themeId: string; params: Record<string, unknown>; effect: string; bgImage: string | null }; result: void };
[IPC.keymapLoad]: { args: void; result: { id: string; combo: string }[] | null };
[IPC.keymapSave]: { args: { id: string; combo: string }[]; result: void };
[IPC.openExternal]: { args: { url: string }; result: void };
}
// 类型安全的 invoke 帮助器签名(preload 暴露 + 渲染层使用)