pub fn install_edit_bridge(
state: impl Fn() -> EditState + 'static,
on_invoke: impl Fn(EditOp) + 'static,
)Expand description
Wire the app’s standard-edit handlers to the platform (docs/menus.md): state is a
tracked read whose value mirrors into the toolkit (Cap::EditBridge: native menu
validation enables the stock Cut/Copy/Paste exactly as it does for text widgets), and
every invocation a platform route delivers comes back through on_invoke. On a toolkit
with no native route, the menu_role(Cut/Copy/Paste) items dispatch here instead (the
same standing-id fallback the undo pair uses). Call once, after launch; installing again
replaces the wiring. Most apps want day::install_edit_commands, which adds the
clipboard transport.