Skip to main content

Keyboard Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

Virtual on-screen keyboard. Attach to a UI.TextBox via Keyboard.SetTarget so taps on keys type into it. Positions itself at the bottom half of the display by default; override via inherited X / Y / Width / Height.

public class Keyboard : Widget

Constructors​

Keyboard(Widget parent)​

public Keyboard(Widget parent)

Create a virtual keyboard inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Methods​

ClearTarget()​

public void ClearTarget()

Detach any current target so key presses go nowhere.

SetTarget(TextBox textbox)​

public void SetTarget(TextBox textbox)

Route key presses into textbox.

ParameterTypeDescription
textboxTextBoxTarget text box; its text updates on each key.