LavaUI docs GitHub

struct KeyShortcutModifier

Swift

struct KeyShortcutModifier

Modifier flags for KeyShortcut, resolved to GLFW-style KeyMods bits.

Sources/LavaMenu/Menu.swift:65

Constructors

init(rawValue: Int)

Creates a set from its bits.

Sources/LavaMenu/Menu.swift:70

Properties

static let command: KeyShortcutModifier

Super (Command on macOS), explicitly.

Sources/LavaMenu/Menu.swift:83

static let control: KeyShortcutModifier

Explicit Control (also on macOS, in addition to or instead of primary).

Sources/LavaMenu/Menu.swift:81

static let option: KeyShortcutModifier

Alt (Option on macOS).

Sources/LavaMenu/Menu.swift:79

static let primary: KeyShortcutModifier

Command on macOS, Control on Linux/Windows.

Sources/LavaMenu/Menu.swift:75

let rawValue: Int

The flag bits.

Sources/LavaMenu/Menu.swift:67

static let shift: KeyShortcutModifier

Shift.

Sources/LavaMenu/Menu.swift:77