233
native menu
also application menu, menu role
Use the OS menu bar. Roles give you undo, quit, and the window menu for free.
What is native menu?
A native menu is the OS menu bar or the window menu, with roles the platform already implements: undo, cut, paste, hide, quit, minimize. An HTML menu inside the page does not get those commands, the OS services menu, or the keyboard behavior users expect.
Why does native menu matter when vibe coding?
Generated Electron apps ship the default menu, or delete it and draw a div. Quit is missing on Windows. Undo does not reach native text fields. The user cannot find Preferences where the platform puts it.
How do you do native menu?
Set the application menu from the shell. Use roles for standard items. Put app-specific items next to them. Mirror the ones that matter in the tray if you have one.
How do you ask a model for native menu?
Use the native application menu for (app). Keep the undo, cut, copy, paste, window, and quit roles. Add (items) beside them. Do not replace the menu with HTML.
What goes wrong with native menu?
Removing the menu to look like a website. You also removed Quit and the edit commands.