mirror of
https://github.com/got-feedBack/feedBack-desktop.git
synced 2026-09-10 23:34:10 +00:00
575f26fa5bf7c8eb78076464b74c6489bc3d4618
Users reported that while in Rig Builder, suddenly every text box in the app stops accepting input, app-wide, until they hit the Windows key. Cause: on Windows, VST editors open as top-level windows owned by the out-of-process vst-host sandbox (the WndProc crash fix). When that child-process window closes while holding keyboard focus — the user clicks its X, or a chain rebuild tears editors down — Windows leaves the Electron window looking active while the OS keyboard focus points at nothing: Chromium still gets pointer events but no keys. The Windows key "fix" works because it forces an OS foreground cycle. Fix: preload.ts installs a win32-only capture-phase pointerdown watchdog. A click landing while document.hasFocus() is false means the OS won't type into the window being clicked — it asks main via window:recoverFocus to run win.blur() + win.focus() (blur first: in the stale state Electron may believe the window is already focused, so a bare focus() can no-op). The user's first click inside the dead window self-heals it, covering every trigger path without having to enumerate them. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Languages
C++
52%
TypeScript
18.6%
JavaScript
17.9%
Shell
7.3%
CMake
2.4%
Other
1.8%