Versions in this module Expand all Collapse all v2 v2.7.2 Jan 29, 2024 Changes in this version + const NSEventModifierFlagCommand + const NSEventModifierFlagControl + const NSEventModifierFlagOption + const NSEventModifierFlagShift + func Stringify(accelerator *Accelerator, platform string) string + func ToMacModifier(accelerator *Accelerator) int + type Accelerator struct + Key string + Modifiers []Modifier + func CmdOrCtrl(key string) *Accelerator + func Combo(key string, modifier1 Modifier, modifier2 Modifier, rest ...Modifier) *Accelerator + func Control(key string) *Accelerator + func Key(key string) *Accelerator + func OptionOrAlt(key string) *Accelerator + func Parse(shortcut string) (*Accelerator, error) + func Shift(key string) *Accelerator + type Modifier string + const CmdOrCtrlKey + const ControlKey + const OptionOrAltKey + const ShiftKey