Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModNone = iota ModShift // shift key ModOption // option key ModControl // control key ModCommand // command key )
These are key modifiers. Note that they represent a real keyboard you'd use today, not a virtual keyboard from any emulated device.
View Source
const (
KeyNone rune = 0
)
Variables ¶
This section is empty.
Functions ¶
func Listen ¶
func Listen(listen EventListener)
Listen registers an EventListener and starts a loop in a goroutine, which listens for new events (via PushEvent) and calls the listen function with them. Alternatively, if a shutdown event is received, it ends.
Types ¶
type EventListener ¶
type EventListener func(e Event)
An EventListener is a function which receives an event
Click to show internal directories.
Click to hide internal directories.