UXP <webview> panels never receive keyboard focus on Windows (InDesign) after an app switch

Host: Adobe InDesign 21.2.0.30 (Windows 11). WebView2 151.0.4129.107.

Manifest: v5, one panel entrypoint with a single , webview.allow:“yes”, allowLocalRendering:“yes”, enableMessageBridge:“localAndRemote”.

Attached: minimal repro plugin (one panel, one webview with a text + native never opens. If InDesign is already foreground (click the document first), the same click works.

Steps to reproduce

  1. Load the attached plugin, open its panel and dock it.

  2. Click another app (e.g. Notepad) so InDesign is not foreground.

  3. Click directly into the text input in the panel.

  4. Type.

Expected: characters appear in the input.

Actual: characters go to the other app; the input stays empty; the <select> never opens. Clicking the InDesign document first, then the input, works. The panel’s on-screen log shows it receives

Reproducing Plugin: https://drive.google.com/file/d/11hccchKmgI6-OVzc1GX3QeBkMPmZ3ehz/view?usp=sharing