fix(editor): 新文档回到顶部 + 超链接用系统浏览器打开 + 链接气泡仅选中时弹出
This commit is contained in:
@@ -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 暴露 + 渲染层使用)
|
||||
|
||||
Reference in New Issue
Block a user