feat: 快捷键录入重绑(FR-K3,keymap:load/save IPC+config.json,SettingsPanel 录入 UI+冲突检测,use-hotkeys 读 store 实时生效,重开恢复)
This commit is contained in:
@@ -52,6 +52,8 @@ export function registerIpc(vault: VaultService) {
|
||||
|
||||
ipcMain.handle(IPC.appearanceLoad, async () => vault.getAppearance());
|
||||
ipcMain.handle(IPC.appearanceSave, async (_e, p: { themeId: string; params: Record<string, unknown>; effect: string }) => { await vault.saveAppearance(p); });
|
||||
ipcMain.handle(IPC.keymapLoad, async () => vault.getKeymaps());
|
||||
ipcMain.handle(IPC.keymapSave, async (_e, p: { id: string; combo: string }[]) => { await vault.saveKeymaps(p); });
|
||||
|
||||
ipcMain.handle(IPC.copyMd, async (_e, p: { path: string }) => {
|
||||
const fs2 = vault.fileService; if (!fs2) return '';
|
||||
|
||||
Reference in New Issue
Block a user