feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes
This commit is contained in:
parent
01ef3293cf
commit
66b6b45ba9
399 changed files with 17828 additions and 11330 deletions
|
|
@ -3,8 +3,9 @@
|
|||
// 키바인딩 IPC. 액션을 파라미터로 받는 단일 채널 집합이며,
|
||||
// 검증·충돌 판정은 전부 `packages/core/src/keybinding.ts` 의 함수를 쓴다.
|
||||
|
||||
import { ipcMain, BrowserWindow } from 'electron'
|
||||
import { ipcMain } from 'electron'
|
||||
import { IPC_CHANNELS } from '@d3ro/core/ipc-channels'
|
||||
import { broadcastToAllWindows } from './renderer-broadcast'
|
||||
import { ipcSuccess, ipcError, ErrorCode } from '@d3ro/core/errors'
|
||||
import {
|
||||
bindingKey,
|
||||
|
|
@ -37,9 +38,7 @@ import type {
|
|||
} from '@d3ro/core/types'
|
||||
|
||||
function broadcast(channel: string, payload: unknown): void {
|
||||
for (const win of BrowserWindow.getAllWindows()) {
|
||||
win.webContents.send(channel, payload)
|
||||
}
|
||||
broadcastToAllWindows(channel, payload)
|
||||
}
|
||||
|
||||
/** 바인딩 맵 변경을 모든 창에 알린다 (창 간 동기화). */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue