ReviewOS

also looking at this

craft-native/craft

fix(shortcuts): make global hotkeys actually fire

#54
Merged glennmichael123 wants to merge fix/global-shortcuts-never-fire into main
11 files +2435 -417
packages/zig/src/bridge_contracts.zigadded+16-0
Changes to packages/zig/src/bridge_contracts.zig
@@ -0,0 +1,16 @@
1//! The native halves of the JS bridge contracts, in one place.
2//!
3//! `test/injected_js_test.zig` drives the real injected JavaScript and then
4//! decodes what it posted with the very code the bridge dispatches to — which
5//! is the only kind of test that can catch a JS side and a native side that
6//! are each individually correct and disagree with each other. Both #27 (menu
7//! action names) and #47 (shortcut payload shape) were exactly that.
8//!
9//! They arrive through one aggregate rather than as two named modules because
10//! both reach `bridge_error.zig`, and a file may belong to only one module per
11//! compilation. A test module also cannot `@import` outside its own directory,
12//! so this has to live here beside the code it re-exports rather than in
13//! `test/`.
14
15pub const menu = ;
16pub const shortcuts = ;