also looking at this
fix(shortcuts): make global hotkeys actually fire
#54
11 files
+2435
-417
| @@ -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 | ||
| 15 | pub const menu = ; | |
| 16 | pub const shortcuts = ; | |