Documentation ¶
Index ¶
Constants ¶
View Source
const ( NameRegexStr = `[A-Za-z\-_0-9]{1,20}` BoundedNameRegexStr = `^` + NameRegexStr + `$` )
Variables ¶
View Source
var ( NameRegex = regexp.MustCompile(BoundedNameRegexStr) // aliases should be on the same line Keys = map[string]kbd.Code{}/* 121 elements not displayed */ )
Functions ¶
This section is empty.
Types ¶
type HotKeyDaemon ¶
type HotKeyDaemon struct {
HotKeys HotKeys
}
func (HotKeyDaemon) Schedule ¶
func (hkdc HotKeyDaemon) Schedule(key string) bool
Try to schedule the key for the given string, returns false if the hotkey doesn't exist or if the key press failed
func (HotKeyDaemon) Start ¶
func (hkdc HotKeyDaemon) Start(http KeyScheduler)
type KeyScheduler ¶
type KeyScheduler chan string
Click to show internal directories.
Click to hide internal directories.