Theia API Documentation v1.77.0
    Preparing search index...

    Hierarchy (View Summary)

    Implements

    Index
    logoWidget?: Widget
    menuWidget?: MenuBarWidget
    preferenceService: PreferenceService
    toggleModeListeners: DisposableCollection = ...
    • Installs Alt-key listeners to toggle menu bar visibility. A clean Alt press (press and release without other keys) shows the given toggle targets and focuses the first menu. Pressing Alt again or clicking outside hides them.

      Parameters

      • menu: MenuBarWidget

        the menu bar widget to focus when shown

      • toggleTargets: () => Widget[]

        supplies the widgets to show/hide on Alt toggle. It is consulted on each gesture, because the targets can depend on state that changes while the listener is installed, e.g. whether the window is in full screen.

      Returns DisposableCollection

    • Manages Lumino menu bar visibility and Alt-key toggling in Electron.

      With native title bar, the native Electron menu bar handles toggle via autoHideMenuBar, so the Lumino menu bar is simply hidden.

      With custom title bar, the Lumino menu bar is the only menu bar visible to the user. For 'toggle' mode, an Alt-key listener is installed to show/hide the menu bar widget.

      Parameters

      Returns void