Versions in this module Expand all Collapse all v0 v0.0.3 Feb 21, 2020 Changes in this version + const CapsLock — darwin/amd64, linux/amd64 + const Key0 — darwin/amd64, linux/amd64 + const Key1 — darwin/amd64, linux/amd64 + const Key2 — darwin/amd64, linux/amd64 + const Key3 — darwin/amd64, linux/amd64 + const Key4 — darwin/amd64, linux/amd64 + const Key5 — darwin/amd64, linux/amd64 + const Key6 — darwin/amd64, linux/amd64 + const Key7 — darwin/amd64, linux/amd64 + const Key8 — darwin/amd64, linux/amd64 + const Key9 — darwin/amd64, linux/amd64 + const KeyA — darwin/amd64, linux/amd64 + const KeyApostrophe — darwin/amd64, linux/amd64 + const KeyB — darwin/amd64, linux/amd64 + const KeyBackslash — darwin/amd64, linux/amd64 + const KeyBackspace — darwin/amd64, linux/amd64 + const KeyC — darwin/amd64, linux/amd64 + const KeyColon — darwin/amd64, linux/amd64 + const KeyCommad — darwin/amd64, linux/amd64 + const KeyD — darwin/amd64, linux/amd64 + const KeyDelete — darwin/amd64, linux/amd64 + const KeyDot — darwin/amd64, linux/amd64 + const KeyDown — darwin/amd64, linux/amd64 + const KeyE — darwin/amd64, linux/amd64 + const KeyEnd — darwin/amd64, linux/amd64 + const KeyEnter — darwin/amd64, linux/amd64 + const KeyEquals — darwin/amd64, linux/amd64 + const KeyEscape — darwin/amd64, linux/amd64 + const KeyF — darwin/amd64, linux/amd64 + const KeyF1 — darwin/amd64, linux/amd64 + const KeyF10 — darwin/amd64, linux/amd64 + const KeyF11 — darwin/amd64, linux/amd64 + const KeyF12 — darwin/amd64, linux/amd64 + const KeyF2 — darwin/amd64, linux/amd64 + const KeyF3 — darwin/amd64, linux/amd64 + const KeyF4 — darwin/amd64, linux/amd64 + const KeyF5 — darwin/amd64, linux/amd64 + const KeyF6 — darwin/amd64, linux/amd64 + const KeyF7 — darwin/amd64, linux/amd64 + const KeyF8 — darwin/amd64, linux/amd64 + const KeyF9 — darwin/amd64, linux/amd64 + const KeyG — darwin/amd64, linux/amd64 + const KeyGrave — darwin/amd64, linux/amd64 + const KeyH — darwin/amd64, linux/amd64 + const KeyHome — darwin/amd64, linux/amd64 + const KeyI — darwin/amd64, linux/amd64 + const KeyInsert — darwin/amd64, linux/amd64 + const KeyJ — darwin/amd64, linux/amd64 + const KeyK — darwin/amd64, linux/amd64 + const KeyKp0 — darwin/amd64, linux/amd64 + const KeyKp1 — darwin/amd64, linux/amd64 + const KeyKp2 — darwin/amd64, linux/amd64 + const KeyKp3 — darwin/amd64, linux/amd64 + const KeyKp4 — darwin/amd64, linux/amd64 + const KeyKp5 — darwin/amd64, linux/amd64 + const KeyKp6 — darwin/amd64, linux/amd64 + const KeyKp7 — darwin/amd64, linux/amd64 + const KeyKp8 — darwin/amd64, linux/amd64 + const KeyKp9 — darwin/amd64, linux/amd64 + const KeyKpDivide — darwin/amd64, linux/amd64 + const KeyKpDot — darwin/amd64, linux/amd64 + const KeyKpEnter — darwin/amd64, linux/amd64 + const KeyKpMinus — darwin/amd64, linux/amd64 + const KeyKpMultiply — darwin/amd64, linux/amd64 + const KeyKpPeriod — darwin/amd64, linux/amd64 + const KeyKpPlus — darwin/amd64, linux/amd64 + const KeyL — darwin/amd64, linux/amd64 + const KeyLAlt — darwin/amd64, linux/amd64 + const KeyLCtrl — darwin/amd64, linux/amd64 + const KeyLGUI — darwin/amd64, linux/amd64 + const KeyLShift — darwin/amd64, linux/amd64 + const KeyLWin — darwin/amd64, linux/amd64 + const KeyLeft — darwin/amd64, linux/amd64 + const KeyLeftBracket — darwin/amd64, linux/amd64 + const KeyM — darwin/amd64, linux/amd64 + const KeyMinus — darwin/amd64, linux/amd64 + const KeyN — darwin/amd64, linux/amd64 + const KeyNumLock — darwin/amd64, linux/amd64 + const KeyO — darwin/amd64, linux/amd64 + const KeyP — darwin/amd64, linux/amd64 + const KeyPageDown — darwin/amd64, linux/amd64 + const KeyPageUp — darwin/amd64, linux/amd64 + const KeyPause — darwin/amd64, linux/amd64 + const KeyPeriod — darwin/amd64, linux/amd64 + const KeyPrintScreen — darwin/amd64, linux/amd64 + const KeyQ — darwin/amd64, linux/amd64 + const KeyR — darwin/amd64, linux/amd64 + const KeyRAlt — darwin/amd64, linux/amd64 + const KeyRCtrl — darwin/amd64, linux/amd64 + const KeyRGUI — darwin/amd64, linux/amd64 + const KeyRShift — darwin/amd64, linux/amd64 + const KeyRWin — darwin/amd64, linux/amd64 + const KeyRight — darwin/amd64, linux/amd64 + const KeyRightBracket — darwin/amd64, linux/amd64 + const KeyS — darwin/amd64, linux/amd64 + const KeyScrollLock — darwin/amd64, linux/amd64 + const KeySpace — darwin/amd64, linux/amd64 + const KeyT — darwin/amd64, linux/amd64 + const KeyTab — darwin/amd64, linux/amd64 + const KeyTilde — darwin/amd64, linux/amd64 + const KeyU — darwin/amd64, linux/amd64 + const KeyUp — darwin/amd64, linux/amd64 + const KeyV — darwin/amd64, linux/amd64 + const KeyW — darwin/amd64, linux/amd64 + const KeyX — darwin/amd64, linux/amd64 + const KeyY — darwin/amd64, linux/amd64 + const KeyZ — darwin/amd64, linux/amd64 + const Slash — darwin/amd64, linux/amd64 + var Debug = false + func Liten() + func Register(fn onKeyFunc, keys ...KeyCode) + func ShowRegister() + type KeyCode uint16 + const CapsLock + const Key0 + const Key1 + const Key2 + const Key3 + const Key4 + const Key5 + const Key6 + const Key7 + const Key8 + const Key9 + const KeyA + const KeyApostrophe + const KeyB + const KeyBackslash + const KeyBackspace + const KeyC + const KeyColon + const KeyComma + const KeyD + const KeyDelete + const KeyDot + const KeyDown + const KeyE + const KeyEnd + const KeyEnter + const KeyEquals + const KeyEscape + const KeyF + const KeyF1 + const KeyF10 + const KeyF11 + const KeyF12 + const KeyF13 + const KeyF14 + const KeyF15 + const KeyF16 + const KeyF17 + const KeyF18 + const KeyF19 + const KeyF2 + const KeyF20 + const KeyF21 + const KeyF22 + const KeyF23 + const KeyF24 + const KeyF3 + const KeyF4 + const KeyF5 + const KeyF6 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyG + const KeyGrave + const KeyH + const KeyHome + const KeyI + const KeyInsert + const KeyJ + const KeyK + const KeyKp0 + const KeyKp1 + const KeyKp2 + const KeyKp3 + const KeyKp4 + const KeyKp5 + const KeyKp6 + const KeyKp7 + const KeyKp8 + const KeyKp9 + const KeyKpDivide + const KeyKpDot + const KeyKpEnter + const KeyKpMinus + const KeyKpMultiply + const KeyKpPeriod + const KeyKpPlus + const KeyL + const KeyLAlt + const KeyLCtrl + const KeyLGUI + const KeyLShift + const KeyLWin + const KeyLeft + const KeyLeftBracket + const KeyM + const KeyMenu + const KeyMinus + const KeyN + const KeyNumLock + const KeyO + const KeyP + const KeyPageDown + const KeyPageUp + const KeyPause + const KeyPeriod + const KeyPrintScreen + const KeyQ + const KeyR + const KeyRAlt + const KeyRCtrl + const KeyRGUI + const KeyRShift + const KeyRWin + const KeyRight + const KeyRightBracket + const KeyS + const KeyScrollLock + const KeySpace + const KeyT + const KeyTab + const KeyTilde + const KeyU + const KeyUp + const KeyV + const KeyW + const KeyX + const KeyY + const KeyZ + const Slash + func (i KeyCode) String() string v0.0.2 Feb 11, 2020 Changes in this version + func StringsToKeys(str ...string) []uint16 v0.0.1 Feb 11, 2020 Changes in this version + func KeyBind(fn onKeyFunc, keys ...uint16) + func Listen() + func Status()