Expand description
Native menu builder for brows3r.
build_menu constructs the full application menu (File, Edit, View, Go,
Help) using Tauri 2’s menu API. Menu item IDs are namespaced with
menu: followed by the command path so the frontend event bridge can
map them directly to registered commands:
menu:file.new-folder → registry command “file.new-folder” menu:edit.copy → registry command “clipboard.copy” …
The frontend registers a menu-event listener in installMenuBridge and
dispatches each incoming event to the command registry.
OCP: adding a new menu item means adding one MenuItem + one command
registration on the frontend. No other code needs to change.
Functions§
- build_
menu - Build the full application menu and return it.