Versions in this module Expand all Collapse all v0 v0.1.0 Nov 11, 2023 Changes in this version + type Event struct + type Hotkey struct + func New(mods []Modifier, key Key) *Hotkey + func (hk *Hotkey) KeyUnregistered() <-chan struct{} + func (hk *Hotkey) Keydown() <-chan Event + func (hk *Hotkey) Keyup() <-chan Event + func (hk *Hotkey) Register() error + func (hk *Hotkey) String() string + func (hk *Hotkey) Unregister() error + type Key uint16 — linux/amd64, windows/amd64 + const Key0 + const Key6 + const Key8 + const KeyA + const KeyDelete + const KeyE + const KeyF15 + const KeyRight + const KeyTab + const KeyZ + type Key uint8 — darwin/amd64 + const Key1 + const Key2 + const Key3 + const Key4 + const Key5 + const Key7 + const Key9 + const KeyB + const KeyC + const KeyD + const KeyDown + const KeyEscape + const KeyF + const KeyF1 + const KeyF10 + const KeyF11 + const KeyF12 + const KeyF13 + const KeyF14 + const KeyF16 + const KeyF17 + const KeyF18 + const KeyF19 + const KeyF2 + const KeyF20 + const KeyF3 + const KeyF4 + const KeyF5 + const KeyF6 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyG + const KeyH + const KeyI + const KeyJ + const KeyK + const KeyL + const KeyLeft + const KeyM + const KeyN + const KeyO + const KeyP + const KeyQ + const KeyR + const KeyReturn + const KeyS + const KeySpace + const KeyT + const KeyU + const KeyUp + const KeyV + const KeyW + const KeyX + const KeyY + type Modifier uint32 — darwin/amd64, linux/amd64 + const Mod1 + const Mod2 + const Mod3 + const Mod4 + const Mod5 + const ModCmd + const ModCtrl + const ModOption + const ModShift + type Modifier uint8 — windows/amd64 + const ModAlt + const ModWin