Documentation ¶
Overview ¶
Package textinput provides a text-inputting controller. This package is experimental and the API might be changed in the future.
This package is supported by macOS and Web browsers so far.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type State ¶
type State struct { // Text represents the current inputting text. Text string // CompositionSelectionStartInBytes represents the start position of the selection in bytes. CompositionSelectionStartInBytes int // CompositionSelectionStartInBytes represents the end position of the selection in bytes. CompositionSelectionEndInBytes int // Committed reports whether the current Text is the settled text. Committed bool }
State represents the current state of text inputting.
Click to show internal directories.
Click to hide internal directories.