3대 근본 버그 수정 (RE 조사 기반)
1. HotkeyService: modifier 먼저 놓기 대응 - Alt+1에서 Alt를 먼저 놓아도 release 감지 - _handleKeyUp에서 pressed 핫키의 구성 키(main/modifier) 매칭 2. ResultPopup auto-close IPC 핸들러 추가 - window:hideResultPopup 핸들러가 없어서 팝업이 안 꺼지던 버그 - window-handlers.ts에 hideResultPopup/hideRecordingTip 핸들러 등록 3. bootstrap.ts 이중 팝업 제어 제거 - session-completed에서 무조건 showResultPopup 호출하던 코드 제거 - 팝업 제어는 VoiceModeService 내부에서만 처리 - bootstrap은 효과음만 담당
This commit is contained in:
parent
788600b66b
commit
c64ab3b58f
3 changed files with 49 additions and 29 deletions
|
|
@ -3,7 +3,7 @@
|
|||
import { ipcMain } from 'electron'
|
||||
import { IPC_CHANNELS } from '@shared/ipc-channels'
|
||||
import { ipcSuccess } from '@shared/errors'
|
||||
import { getMainWindow } from '../windows/WindowManager'
|
||||
import { getMainWindow, hideResultPopup, hideRecordingTip } from '../windows/WindowManager'
|
||||
|
||||
export function registerWindowHandlers(): void {
|
||||
ipcMain.on(IPC_CHANNELS.WINDOW.MINIMIZE, () => {
|
||||
|
|
@ -28,4 +28,13 @@ export function registerWindowHandlers(): void {
|
|||
ipcMain.handle(IPC_CHANNELS.WINDOW.IS_MAXIMIZED, async () => {
|
||||
return ipcSuccess(getMainWindow()?.isMaximized() ?? false)
|
||||
})
|
||||
|
||||
// 팝업 윈도우 hide 요청 (렌더러 → 메인)
|
||||
ipcMain.on('window:hideResultPopup', () => {
|
||||
hideResultPopup()
|
||||
})
|
||||
|
||||
ipcMain.on('window:hideRecordingTip', () => {
|
||||
hideRecordingTip()
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue