Documentation
¶
Overview ¶
Package controller can simulate user interaction
User interaction is primarily keyboard and mouse input. Mouse input is primarily clicking elements. Keyboard input should also handle:
- Move focus when pressing `tab` - Submit a form when pressing `enter` in a form field
Assuming that the events are not cancelled, and forms pass validation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyboardController ¶
KeyboardController simulates the user typing a sequence of keys.
func (KeyboardController) SendKey ¶
func (c KeyboardController) SendKey(k key.Key)
SendKey simulates the input of a single key.
Ignored if no Window is assigned.
Click to show internal directories.
Click to hide internal directories.