Discover Packages
github.com/gost-dom/browser
input
controller
package
Version:
v0.9.1
Opens a new window with list of versions in this module.
Published: Oct 23, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 1 module, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
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.
type KeyboardController struct {
Window html .Window
}
KeyboardController simulates the user typing a sequence of keys.
SendKey simulates the input of a single key.
Ignored if no Window is assigned.
SendKeys simulates the user typing a sequence of keys. The key package
contains functionality to generate sequences of keys from an input string.
Ignored if no Window is assigned.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.