MenuBarControllerOptions interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface MenuBarControllerOptions

Properties

shortcuts

readonly shortcuts?: "runic" | "app";

Who matches the items' shortcuts. This set is closed. - "runic", the default: the host matches them on its own key path, or this controller in the page where the host has none, after the page saw the key and did not call preventDefault(). - "app": the page matches them itself, for example with MenuBarController. While the bar is in the page (placement "page"), the host stops matching them for this page until the controller is disposed.

keyboard

readonly keyboard?: boolean;

Emits focus and open requests for Alt, F10 and Alt plus a menu's access key on Windows and Linux while the bar is in the page, and sets accessKeyHints. Defaults to true.

signal

readonly signal?: AbortSignal;

Disposes the controller when it aborts.