package win32 // Hotkey describes a single global key combination. Mods is the bitwise // OR of ModCtrl/ModAlt/ModShift/ModWin; VK is a virtual-key code // (0x41='A', ...). type Hotkey struct { Mods uint32 VK uint32 } // Modifier bits passed to RegisterHotKey. const ( ModAlt uint32 = 0x1 ModCtrl uint32 = 0x2 ModShift uint32 = 0x4 ModWin uint32 = 0x8 // ModNoRepeat suppresses auto-repeat events when the key is held. // Supported on Windows 7+. ModNoRepeat uint32 = 0x4000 ) // HotkeyEvent fires when a registered hotkey is pressed. ID matches the // id returned by HotkeyManager.Register. type HotkeyEvent struct { ID int32 }