Documentation ¶
Index ¶
Constants ¶
View Source
const ( // None indicates no modifiers None Modifier = 0 // Alt indicates Left Alt is pressed Alt = 1 // Ctrl indicated that either Ctrl key is pressed Ctrl = 2 )
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(event KeyEvent, listener KeyListener)
Register associates a KeyListener with a specific KeyEvent
Types ¶
type KeyEvent ¶
KeyEvent represents the combinator of a normal key, modifier keys, and a State, used to represent an Event to scan for
type KeyListener ¶
type KeyListener func(ke KeyEvent)
KeyListener is a function to call in response to a KeyEvent
Click to show internal directories.
Click to hide internal directories.