Documentation ¶
Index ¶
- type Accelerator
- 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 Shift(key string) *Accelerator
- func Super(key string) *Accelerator
- type Modifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accelerator ¶
Accelerator holds the keyboard shortcut for a menu item
func CmdOrCtrl ¶
func CmdOrCtrl(key string) *Accelerator
CmdOrCtrl creates a 'CmdOrCtrl' Accelerator
func Combo ¶
func Combo(key string, modifier1 Modifier, modifier2 Modifier, rest ...Modifier) *Accelerator
Combo creates an Accelerator with multiple Modifiers
func OptionOrAlt ¶
func OptionOrAlt(key string) *Accelerator
OptionOrAlt creates a 'OptionOrAlt' Accelerator
type Modifier ¶
type Modifier string
Modifier is actually a string
const ( // CmdOrCtrlKey represents Command on Mac and Control on other platforms CmdOrCtrlKey Modifier = "CmdOrCtrl" // OptionOrAltKey represents Option on Mac and Alt on other platforms OptionOrAltKey Modifier = "OptionOrAlt" // ShiftKey represents the shift key on all systems ShiftKey Modifier = "Shift" // SuperKey represents Command on Mac and the Windows key on the other platforms SuperKey Modifier = "Super" // ControlKey represents the control key on all systems ControlKey Modifier = "Control" )
Click to show internal directories.
Click to hide internal directories.