interface MenuBarState The menu bar as the page renders it. Each change is a new object.
Properties
status
readonly status: "connecting" | "ready" | "unavailable" | "failed"; connecting until the host answered; ready with the host's bar; unavailable when the host has no in-page menu bar (an older host, CS-WebUI, a released window or no Bridge); failed with error otherwise. This set is open: a later version may add values.
placement
readonly placement: "page" | "window" | "global" | "none"; Where the bar is shown now; render a bar only for "page". "window" and "global" are native bars (macOS keeps its application menu bar, "global"), and "none" shows no bar. This set is open: a later version may add values.
shortcuts
readonly shortcuts: "host" | "page" | "app"; Who matches the items' shortcuts now: "host" on its native key path, "page" this package in the page, "app" the application, under the shortcuts: "app" option. This set is open: a later version may add values.
accessKeyHints
readonly accessKeyHints: boolean; Alt is held, or a keyboard request is being handled: underline the access keys (splitAccessKey).
revision
readonly revision: number; Increases with each change of the host's state.
menus
readonly menus: readonly MenuBarMenu[]; The menus in the platform's order: on Windows and Linux File first and Help last.