docs(wry): record macos keydown gating divergence

This commit is contained in:
t8y2
2026-09-10 14:34:50 +08:00
parent c3f2bbf650
commit ab04deea11
+12
View File
@@ -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).