From ab04deea112a70c402eff28ba7adb8113e14805f Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Thu, 10 Sep 2026 14:34:50 +0800 Subject: [PATCH] docs(wry): record macos keydown gating divergence --- vendor/wry/DBX-PATCH.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vendor/wry/DBX-PATCH.md b/vendor/wry/DBX-PATCH.md index b462cc0851..fbf1c9101f 100644 --- a/vendor/wry/DBX-PATCH.md +++ b/vendor/wry/DBX-PATCH.md @@ -12,3 +12,15 @@ On macOS, DBX also updates Wry's pasteboard and modifier-key APIs for `objc2-app-kit` 0.3.2 and removes `unsafe` blocks around methods that are now exposed as safe. This keeps file drag-and-drop behavior while avoiding deprecated AppKit constants and compiler warnings. + +On macOS, DBX also gates `WryWebViewParent.keyDown:` menu key-equivalent +forwarding on Command/Control modifiers, returns early when the menu handles +the event, and sinks remaining unhandled events via `interpretKeyEvents` +(preserving upstream's no-NSBeep behavior from wry#742). Without the gate, +every keyDown was passed to `performKeyEquivalent`, which silently swallowed +keys that matched no menu accelerator before they reached the WKWebView +content (iframe-based apps included); Option-modified keys stay untouched for +dead-key/compose input. This matches the proposal in upstream +tauri-apps/wry#1711 (see also tauri-apps/wry#1175, #1177) and unblocks +in-app shortcuts such as the table structure editor (t8y2/dbx#7245, +landed via PR #8650).