Jafz2001andClaude Fable 5 575f26fa5b
Addon CI / addon (arm64, macos-14, mac) (push) Has been cancelled
Addon CI / addon (x64, ubuntu-22.04, linux) (push) Has been cancelled
Addon CI / addon (x64, windows-latest, win) (push) Has been cancelled
Ship CI / CI (push) Has been cancelled
fix(windows): recover orphaned keyboard focus after native VST editor closes
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>
2026-07-21 15:36:16 -04:00
2026-06-16 18:48:12 +02:00
2026-06-16 18:48:12 +02:00
2026-06-16 18:48:12 +02:00
2026-06-16 18:48:12 +02:00
2026-06-16 18:48:12 +02:00
2026-06-16 18:48:12 +02:00
2026-06-16 18:48:12 +02:00
2026-06-16 18:48:12 +02:00
2026-06-16 18:48:12 +02:00
2026-06-16 18:48:12 +02:00
2026-06-16 18:48:12 +02:00
2026-06-16 18:48:12 +02:00
S
Description
No description provided
AGPL-3.0
2.8 MiB
Languages
C++ 52%
TypeScript 18.6%
JavaScript 17.9%
Shell 7.3%
CMake 2.4%
Other 1.8%