Documentation
¶
Overview ¶
Package key represents keys on the keyboard that the user might type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Key ¶
type Key struct {
Key string
Letter string
Down, Up bool
// contains filtered or unexported fields
}
Key represents a single keyboard input. WARNING: This is experimental.
This is currently a simple abstraction, not taking the sequence of modifier keys into consideration. E.g., shift+A would result in keydown (shift), keydown (A with modifer shift: true), keyup (A), and keyup (shift).
This general sequence of events is not yet properly representable in the types.
func (Key) EventInit ¶ added in v0.9.1
func (k Key) EventInit() uievents.KeyboardEventInit
EventInit creates a KeyboardEventInit representing the key stroke.
Click to show internal directories.
Click to hide internal directories.